mirror of
https://github.com/CTurt/dsgmLib.git
synced 2025-06-18 14:45:43 -04:00
Fix for stylus delta values
This commit is contained in:
parent
fd73963b03
commit
0433a755f9
BIN
lib/libdsgm.a
BIN
lib/libdsgm.a
Binary file not shown.
@ -36,6 +36,13 @@ void DSGM_UpdateInput(void) {
|
||||
DSGM_held.Any = (DSGM_held.A || DSGM_held.B || DSGM_held.Select || DSGM_held.Start || DSGM_held.Right || DSGM_held.Left || DSGM_held.Up || DSGM_held.Down || DSGM_held.R || DSGM_held.L || DSGM_held.X || DSGM_held.Y || DSGM_held.Stylus || DSGM_held.Lid);
|
||||
DSGM_release.Any = (DSGM_release.A || DSGM_release.B || DSGM_release.Select || DSGM_release.Start || DSGM_release.Right || DSGM_release.Left || DSGM_release.Up || DSGM_release.Down || DSGM_release.R || DSGM_release.L || DSGM_release.X || DSGM_release.Y || DSGM_release.Stylus || DSGM_release.Lid);
|
||||
|
||||
if(DSGM_newpress.Stylus) {
|
||||
touchPosition tempStylus;
|
||||
touchRead(&tempStylus);
|
||||
DSGM_stylus.x = tempStylus.px;
|
||||
DSGM_stylus.y = tempStylus.py;
|
||||
}
|
||||
|
||||
if(DSGM_held.Stylus) {
|
||||
touchPosition tempStylus;
|
||||
touchRead(&tempStylus);
|
||||
@ -44,7 +51,7 @@ void DSGM_UpdateInput(void) {
|
||||
DSGM_stylus.x = tempStylus.px;
|
||||
DSGM_stylus.y = tempStylus.py;
|
||||
}
|
||||
else {
|
||||
else if(DSGM_release.Stylus) {
|
||||
DSGM_stylus.dx = 0;
|
||||
DSGM_stylus.dy = 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user