Can anyone offer advice on using gamepads in a script-based project? I understand it's necessary to use an event sheet because the Gamepad plugin isn't accessible to the scripting interface. Here are some of my goals for the implementation:
Here's my latest attempt for the event sheet. This would be fine if I could return the data to my script file.
Can anyone offer advice on using gamepads in a script-based project? I understand it's necessary to use an event sheet because the Gamepad plugin isn't accessible to the scripting interface. Here are some of my goals for the implementation: Pass Gamepad plugin data to a script file from an event sheet. Avoid introducing side effects in the event sheet. Avoid mutable global variables. Here's my latest attempt for the event sheet. This would be fine if I could return the data to my script file.
construct.net/en/make-games/manuals/construct-3/scripting/scripting-reference/iruntime
If you're writing JavaScript code, you can just access the Gamepad API directly. You don't have to go through Construct's APIs, you can use the browser APIs directly.
Develop games in your browser. Powerful, performant & highly capable.
Ashley Thank you! That solution didn't even occur to me. I'll try it out.