Add an option to enable/disable keyboard inputs for Game Control
Financial Rizzler
The Issue
Using the "game_control" event alongside the "control" event within the same script presents a potential conflict.
Currently, scripts have no way of determining which input device a user is interacting with when receiving "game_control" data. Without appropriate input validation, this can result in conflicts between the two events.
This is particularly problematic when a context-sensitive control layout is intended for other input devices, such as controllers, but is not desirable for keyboard users by design.
Proposed Feature
Introduce a separate toggle that allows users to control whether keyboard input can generate "game_control" events.
When disabled, only non-keyboard input devices would be able to generate "game_control" events, allowing keyboard input to be handled independently through the "control" event.
This would provide greater flexibility for developers when implementing device-specific control schemes and help prevent unintended conflicts between the two events.
Log In