mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-22 17:45:16 +00:00
update joyshock gyro and touch states
This commit is contained in:
parent
a47153f2f6
commit
8c40bae444
1 changed files with 8 additions and 0 deletions
|
@ -120,6 +120,14 @@ namespace HeavenStudio.InputSystem
|
|||
joyBtStateLast = joyBtStateCurrent;
|
||||
joyBtStateCurrent = JslGetSimpleState(joyshockHandle);
|
||||
|
||||
//gyro and accelerometer
|
||||
joyImuStateLast = joyImuStateCurrent;
|
||||
joyImuStateCurrent = JslGetIMUState(joyshockHandle);
|
||||
|
||||
//touchpad
|
||||
joyTouchStateLast = joyTouchStateCurrent;
|
||||
joyTouchStateCurrent = JslGetTouchState(joyshockHandle);
|
||||
|
||||
//stick direction state
|
||||
//split controllers will need to be rotated to compensate
|
||||
//left rotates counterclockwise, right rotates clockwise, all by 90 degrees
|
||||
|
|
Loading…
Reference in a new issue