mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-25 06:45:50 +12:00
Add basic input
This commit is contained in:
parent
a44ac89c78
commit
a8334f1333
5 changed files with 56 additions and 1 deletions
|
@ -34,6 +34,11 @@ public:
|
|||
HIDService(Memory& mem, Kernel& kernel) : mem(mem), kernel(kernel) {}
|
||||
void reset();
|
||||
void handleSyncRequest(u32 messagePointer);
|
||||
|
||||
void pressKey(u32 key);
|
||||
void releaseKey(u32 key);
|
||||
void setCirclepadX(u16 x);
|
||||
void setCirclepadY(u16 y);
|
||||
void updateInputs();
|
||||
|
||||
void setSharedMem(u8* ptr) {
|
||||
|
|
|
@ -82,5 +82,10 @@ public:
|
|||
void setHIDSharedMem(u8* ptr) { hid.setSharedMem(ptr); }
|
||||
|
||||
void signalDSPEvents() { dsp.signalEvents(); }
|
||||
|
||||
void pressKey(u32 key) { hid.pressKey(key); }
|
||||
void releaseKey(u32 key) { hid.releaseKey(key); }
|
||||
void setCirclepadX(u16 x) { hid.setCirclepadX(x); }
|
||||
void setCirclepadY(u16 y) { hid.setCirclepadY(y); }
|
||||
void updateInputs() { hid.updateInputs(); }
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue