mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2024-11-14 21:37:42 -07:00
improve touchscreen precision
This commit is contained in:
parent
67f0c7b123
commit
829b044802
7
SPI.cpp
7
SPI.cpp
@ -100,8 +100,8 @@ void Reset()
|
|||||||
*(u16*)&Firmware[userdata+0x5A] = 0;
|
*(u16*)&Firmware[userdata+0x5A] = 0;
|
||||||
Firmware[userdata+0x5C] = 1;
|
Firmware[userdata+0x5C] = 1;
|
||||||
Firmware[userdata+0x5D] = 1;
|
Firmware[userdata+0x5D] = 1;
|
||||||
*(u16*)&Firmware[userdata+0x5E] = 254;
|
*(u16*)&Firmware[userdata+0x5E] = 254<<4;
|
||||||
*(u16*)&Firmware[userdata+0x60] = 190;
|
*(u16*)&Firmware[userdata+0x60] = 190<<4;
|
||||||
Firmware[userdata+0x62] = 255;
|
Firmware[userdata+0x62] = 255;
|
||||||
Firmware[userdata+0x63] = 191;
|
Firmware[userdata+0x63] = 191;
|
||||||
|
|
||||||
@ -318,7 +318,8 @@ void SetTouchCoords(u16 x, u16 y)
|
|||||||
|
|
||||||
if (y == 0xFFF) return;
|
if (y == 0xFFF) return;
|
||||||
|
|
||||||
// TODO: eventually convert?
|
TouchX <<= 4;
|
||||||
|
TouchY <<= 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
u8 Read()
|
u8 Read()
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
1481161027 c:\documents\sources\melonds\types.h
|
1481161027 c:\documents\sources\melonds\types.h
|
||||||
|
|
||||||
1486162025 source:c:\documents\sources\melonds\nds.cpp
|
1486163139 source:c:\documents\sources\melonds\nds.cpp
|
||||||
<stdio.h>
|
<stdio.h>
|
||||||
<string.h>
|
<string.h>
|
||||||
"NDS.h"
|
"NDS.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user