danger/u/
game control alternative?

| i somehow have issues with coding things like Onkeypress and such, and even on mouse events...so i wonder how can a game be controlled equally similar but disregard all those.


| Idk but there's the reWASD app that turns the phone into a Bluetooth controller


| >>1059064 huh... not that.


| 50k gaming


| name controls by what they do, load a config file which maps e.g. moveup = arrow_up; fire = lmb_down; put a complete list of available keys in a big #comment in the config file. like a "proxy pattern" or "dictionary". if you want players to be able to fix up the controls maximally, even when they have hardware or preferences you didn't anticipate.


| Depends on the engine and programming language you're working with, but generally there's probably a way to bunch up the inputs (like, idk, an array of [:left_mouse, :south_button, :enter]), and then make them all go to the same function.

Total number of posts: 6, last modified on: Fri Jan 1 00:00:00 1749605649

Refresh