libretro / vice-libretro

Versatile Commodore 8-bit Emulator
GNU General Public License v2.0
40 stars 70 forks source link

Allow Dpad mouse emulation to be switched off (only use analog stick as mouse) #519

Closed rsn8887 closed 1 month ago

rsn8887 commented 1 month ago

In Eye of the Beholder C64, it is nice to map wasd keys for motion onto the dpad, and at the same time use the analog stick as mouse emulation to move the mouse pointer.

But the dpad always also moves the mouse pointer, even if dpad mouse speed is set to 0%. This is not intuitive. Why should 0% speed still move the mouse?

I propose to either allow an option to switch off the dpad mouse altogether (analog stick mouse stays active), or make 0% dpad mouse speed truly zero so no mouse movement happens when pressing the dpad.

sonninnos commented 1 month ago

I'll look into it soonish.

sonninnos commented 1 month ago

No wonder since dpadmouse_speed value 1 was wrongly rounded as 0%. Thus added proper value 0, and also made sure that dpadmouse is disabled if any D-Pad directions are pressing keyboard keys.

rsn8887 commented 1 month ago

Awesome work! Thanks!