Bug Issue: Map button to control is mapping to keyboard as well


Pages: 1

Luyren

  • Master Stencyler
  • *
September 23, 2018, 05:02:56 pm
b9983, running on Windows 10. I'm using a Dualshock 4 controller plugged via USB cable to my PC, without any extra software.

When using the [map button ( ) to control (control)] block, it maps the gamepad button to the control, but also maps a keyboard key for that control to the gamepad.

So for example, the default control action1 is set to the key Z. If I map the square button in my dualshock4  to action1, whenever I press square again it simulates a keyboard press of the key Z, triggering all keyboard events I have.

Samplegame: any key press or gamepad button press will print on the console its input and keycode if applicable, as long as printing "keyboard" or "gamepad" when either is pressed. Click with the mouse on the scene, it will map action1 to "0, 0" that is square in the dualshock4, I think its X on an Xbox Controller. If you press the gamepad button again, you will notice that the print statements will trigger for both gamepad event and keyboard event.


New attachment added by Luyren - September 23, 2018, 05:03:10 pm


Issue updated by Justin - September 28, 2018, 01:59:28 pm
  • Tags added: 3.5 NP


rob1221

  • Master Stencyler
  • *
October 05, 2018, 01:44:35 pm
In b10020, gamepad button presses will no longer trigger the any key pressed event.  They will also not trigger secondary controls that are bound to the same key of the primary control.
  • Status changed from New to Resolved
  • Issue Assigned from (none) to rob1221
  • Tags removed: 3.5 NP


Luyren

  • Master Stencyler
  • *
October 05, 2018, 03:47:17 pm
b10020 on Windows
Fix confirmed. Thanks!


Pages: 1

Details

  • Reported
    September 23, 2018, 05:02:56 pm
  • Updated
    October 05, 2018, 03:47:17 pm

  • View Status
    Public
  • Type
    Bug
  • Status
    Resolved
  • Priority
    Normal
  • Version
    3.5.0 beta 1
  • Fixed in
    (none)
  • Assigned to
    rob1221
  • Category
    Engine

Tags


Attachments

* Gamepad Keyboard Conflict.stencyl (745.1 kB - downloaded 17 times.)