fix mouse wheel zooming in the automap (#581)

* fix mouse wheel zooming in the automap

Fixes #580

* adjust default button bindings for mouse wheel zooming in the automap
This commit is contained in:
Fabian Greffrath 2022-06-08 14:13:49 +02:00 committed by GitHub
parent 7de70f2e8b
commit 23dce0bee1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -779,8 +779,8 @@ boolean AM_Responder
if (ev->type == ev_mouseb_down &&
(ev->data1 == MOUSE_BUTTON_WHEELUP || ev->data1 == MOUSE_BUTTON_WHEELDOWN))
{
mtof_zoommul = M2_ZOOMIN;
ftom_zoommul = M2_ZOOMOUT;
mtof_zoommul = M2_ZOOMOUT;
ftom_zoommul = M2_ZOOMIN;
}
else
{
@ -793,8 +793,8 @@ boolean AM_Responder
if (ev->type == ev_mouseb_down &&
(ev->data1 == MOUSE_BUTTON_WHEELUP || ev->data1 == MOUSE_BUTTON_WHEELDOWN))
{
mtof_zoommul = M2_ZOOMOUT;
ftom_zoommul = M2_ZOOMIN;
mtof_zoommul = M2_ZOOMIN;
ftom_zoommul = M2_ZOOMOUT;
}
else
{

View File

@ -1154,7 +1154,7 @@ default_t defaults[] = {
{0}, {UL,UL}, input, ss_keys, wad_no,
"key to enlarge automap",
input_map_zoomin, { {input_type_key, '='},
{input_type_mouseb, MOUSE_BUTTON_WHEELDOWN} }
{input_type_mouseb, MOUSE_BUTTON_WHEELUP} }
},
{
@ -1163,7 +1163,7 @@ default_t defaults[] = {
{0}, {UL,UL}, input, ss_keys, wad_no,
"key to reduce automap",
input_map_zoomout, { {input_type_key, '-'},
{input_type_mouseb, MOUSE_BUTTON_WHEELUP} }
{input_type_mouseb, MOUSE_BUTTON_WHEELDOWN} }
},
{