X11: Allow toggling mouse_support off
Prevents accidental mouse clicks on the map.
This commit is contained in:
@@ -237,6 +237,7 @@ X11: handle paged menu control keys
|
|||||||
X11: remember perm_invent window geometry
|
X11: remember perm_invent window geometry
|
||||||
X11: handle X errors via panic
|
X11: handle X errors via panic
|
||||||
X11: don't reuse perm_invent window for picking an object
|
X11: don't reuse perm_invent window for picking an object
|
||||||
|
X11: obey mouse_support and allow toggling it in game
|
||||||
|
|
||||||
|
|
||||||
General New Features
|
General New Features
|
||||||
|
|||||||
@@ -1307,6 +1307,7 @@ char **argv;
|
|||||||
|
|
||||||
/* add another option that can be set */
|
/* add another option that can be set */
|
||||||
set_wc_option_mod_status(WC_TILED_MAP, SET_IN_GAME);
|
set_wc_option_mod_status(WC_TILED_MAP, SET_IN_GAME);
|
||||||
|
set_option_mod_status("mouse_support", SET_IN_GAME);
|
||||||
|
|
||||||
load_default_resources(); /* create default_resource_data[] */
|
load_default_resources(); /* create default_resource_data[] */
|
||||||
|
|
||||||
|
|||||||
@@ -1029,6 +1029,9 @@ Cardinal *num_params;
|
|||||||
|
|
||||||
switch (event->type) {
|
switch (event->type) {
|
||||||
case ButtonPress:
|
case ButtonPress:
|
||||||
|
if (!iflags.wc_mouse_support)
|
||||||
|
return;
|
||||||
|
|
||||||
button = (XButtonEvent *) event;
|
button = (XButtonEvent *) event;
|
||||||
#ifdef VERBOSE_INPUT
|
#ifdef VERBOSE_INPUT
|
||||||
printf("button press\n");
|
printf("button press\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user