Directly getting virtual joystick state on mobile

I was working on making a control scheme work with WASD/arrow keys for computer, the joystick for gamepads, and the virtual joystick for mobile, when I suddenly realized, you can’t do that. I feel like this is an oversight considering we can get more directional data out of the virtual joystick than using ContextActionService buttons (e.g. 4 directions, not unlimited). This is a bit of a frustration, since I want mobile users to be able to play my game properly.

I could definitely make a custom virtual joystick, but… why? Why not just implement support for getting the data directly?

1 Like

I talked with Jmargh about this at RDC. He seemed into it though I don’t think he made any promises.

He made a point of being able to use the new player scripts to do this though. Once those are out the default joystick will just run on the regular permission level so you can steal the code and change it to do whatever you want.

1 Like