File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ Dragging_info::Dragging_info(
88
88
if (!button->is_draggable ()) {
89
89
return ;
90
90
}
91
- button->push (1 );
91
+ button->push (Gump::MouseButton::Left );
92
92
// Pushed button, so make noise.
93
93
if (!button->is_checkmark ()) {
94
94
Audio::get_ptr ()->play_sound_effect (Audio::game_sfx (73 ));
@@ -271,10 +271,10 @@ bool Dragging_info::drop(
271
271
bool handled = moved;
272
272
Mouse::mouse->set_shape (mouse_shape);
273
273
if (button) {
274
- button->unpush (1 );
274
+ button->unpush (Gump::MouseButton::Left );
275
275
if (button->on_button (x, y)) {
276
276
// Clicked on button.
277
- button->activate (1 );
277
+ button->activate (Gump::MouseButton::Left );
278
278
}
279
279
handled = true ;
280
280
} else if (!obj) { // Only dragging a gump?
Original file line number Diff line number Diff line change @@ -162,8 +162,13 @@ class Mouse {
162
162
return onscreen;
163
163
}
164
164
165
- inline int get_mousex () const { return mousex; }
166
- inline int get_mousey () const { return mousey; }
165
+ inline int get_mousex () const {
166
+ return mousex;
167
+ }
168
+
169
+ inline int get_mousey () const {
170
+ return mousey;
171
+ }
167
172
168
173
// Sets hand or speed cursors
169
174
void set_speed_cursor ();
You can’t perform that action at this time.
0 commit comments