You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 19, 2022. It is now read-only.
I'm going through and trying to add decent controller support to the engine. It's not too difficult, but it does add a whole lot to the experience for those more comfortable with a controller than a keyboard and mouse (or those sitting on the couch and wanting to play).
Basic controller support is available in the game-controllers branch, with a few caveats:
In the event loop, KEYUP and KEYDOWN are swapped for controller button presses, to appear quicker and nicer. We really should just not smash them to KEYUP/DOWN, leave them as the CONTROLLERBUTTONUP/DOWN events, and then interpret those properly in keyPressEvents. Since we still call the correctkeyUp/DownEvent() for the press and don't swap that as well, we shouldn't get into any undefined/bad states hopefully.
We should make game controllers and joysticks pluggable/unpluggable. Right now it only lets you use one if it's plugged in at game start.
I'm currently implementing the controls as mapped in the (apparently) existing PSP controls, which work pretty well.
If there are any other suggestions with regards to button controls, please just post them here!
edit:
Just pushed the update to snap the mouse pointer to the default button when the player isn't using mouse-based movement. This improves the experience quite a bit for both game controllers and keyboards, making it nicer to see which item you're on when the screen changes!
The text was updated successfully, but these errors were encountered:
Game controller support is now merged into master. It's implemented similarly to joystick support, so right now it only supports game controllers plugged in when Ponscripter first starts up.
If we want to we can add hotpluggable controller support, but I'm alright with where this support is right now.
I'm going through and trying to add decent controller support to the engine. It's not too difficult, but it does add a whole lot to the experience for those more comfortable with a controller than a keyboard and mouse (or those sitting on the couch and wanting to play).
Basic controller support is available in the game-controllers branch, with a few caveats:
KEYUP
andKEYDOWN
are swapped for controller button presses, to appear quicker and nicer. We really should just not smash them toKEYUP/DOWN
, leave them as theCONTROLLERBUTTONUP/DOWN
events, and then interpret those properly in keyPressEvents. Since we still call the correctkeyUp/DownEvent()
for the press and don't swap that as well, we shouldn't get into any undefined/bad states hopefully.I'm currently implementing the controls as mapped in the (apparently) existing PSP controls, which work pretty well.
If there are any other suggestions with regards to button controls, please just post them here!
edit:
Just pushed the update to snap the mouse pointer to the default button when the player isn't using mouse-based movement. This improves the experience quite a bit for both game controllers and keyboards, making it nicer to see which item you're on when the screen changes!
The text was updated successfully, but these errors were encountered: