Bad-but-ok for now gyroscope implementation
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -99,4 +99,8 @@ class ServiceManager {
|
||||
void updateInputs(u64 currentTimestamp) { hid.updateInputs(currentTimestamp); }
|
||||
void setTouchScreenPress(u16 x, u16 y) { hid.setTouchScreenPress(x, y); }
|
||||
void releaseTouchScreen() { hid.releaseTouchScreen(); }
|
||||
|
||||
void setRoll(s16 roll) { hid.setRoll(roll); }
|
||||
void setPitch(s16 pitch) { hid.setPitch(pitch); }
|
||||
void setYaw(s16 yaw) { hid.setYaw(yaw); }
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user