mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-05 18:41:39 +12:00
Bad-but-ok for now gyroscope implementation
This commit is contained in:
parent
2edc17367a
commit
1a7e79f2c9
5 changed files with 44 additions and 0 deletions
|
@ -52,6 +52,7 @@ class HIDService {
|
|||
|
||||
s16 circlePadX, circlePadY; // Circlepad state
|
||||
s16 touchScreenX, touchScreenY; // Touchscreen state
|
||||
s16 roll, pitch, yaw; // Gyroscope state
|
||||
|
||||
bool accelerometerEnabled;
|
||||
bool eventsInitialized;
|
||||
|
@ -117,6 +118,10 @@ class HIDService {
|
|||
newButtons |= 1 << 31;
|
||||
}
|
||||
|
||||
void setRoll(s16 value) { roll = value; }
|
||||
void setPitch(s16 value) { pitch = value; }
|
||||
void setYaw(s16 value) { yaw = value; }
|
||||
|
||||
void updateInputs(u64 currentTimestamp);
|
||||
|
||||
void setSharedMem(u8* ptr) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue