mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-13 11:27:38 +02:00
update joyshock gyro and touch states
This commit is contained in:
@ -120,6 +120,14 @@ namespace HeavenStudio.InputSystem
|
|||||||
joyBtStateLast = joyBtStateCurrent;
|
joyBtStateLast = joyBtStateCurrent;
|
||||||
joyBtStateCurrent = JslGetSimpleState(joyshockHandle);
|
joyBtStateCurrent = JslGetSimpleState(joyshockHandle);
|
||||||
|
|
||||||
|
//gyro and accelerometer
|
||||||
|
joyImuStateLast = joyImuStateCurrent;
|
||||||
|
joyImuStateCurrent = JslGetIMUState(joyshockHandle);
|
||||||
|
|
||||||
|
//touchpad
|
||||||
|
joyTouchStateLast = joyTouchStateCurrent;
|
||||||
|
joyTouchStateCurrent = JslGetTouchState(joyshockHandle);
|
||||||
|
|
||||||
//stick direction state
|
//stick direction state
|
||||||
//split controllers will need to be rotated to compensate
|
//split controllers will need to be rotated to compensate
|
||||||
//left rotates counterclockwise, right rotates clockwise, all by 90 degrees
|
//left rotates counterclockwise, right rotates clockwise, all by 90 degrees
|
||||||
|
Reference in New Issue
Block a user