File tree Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -96,4 +96,10 @@ RemoveZLZR:
96
96
mov r1 , # 0
97
97
stmea sp , {r1 , r2}
98
98
mov r3 , # 0
99
+
100
+ .org 0x1048D0 // Remove ZL/ZR from irrstSamplingThread
101
+ orr r1 , r1 , # 0x20000
102
+ .org 0x1048E4
103
+ orr r1 , r1 , # 0x10000
104
+
99
105
.close
Original file line number Diff line number Diff line change @@ -297,6 +297,17 @@ void irSampling() {
297
297
IrrstEntry entry;
298
298
svcSetTimer (irtimer, 8000000LL , 0LL );
299
299
volatile uint32_t latest = *latestKeysPA;
300
+
301
+ if ((latest & 0x10000 ) == 0x10000 ) {
302
+ latest |= 0x4000 ;
303
+ latest &= ~0x10000 ;
304
+ }
305
+
306
+ if ((latest & 0x20000 ) == 0x20000 ) {
307
+ latest |= 0x8000 ;
308
+ latest &= ~0x20000 ;
309
+ }
310
+
300
311
entry.pressedpadstate = (latest ^ latestkeys) & ~latestkeys;
301
312
entry.releasedpadstate = (latest ^ latestkeys) & latestkeys;
302
313
entry.currpadstate = latest;
You can’t perform that action at this time.
0 commit comments