mirror of
https://github.com/n64decomp/sm64
synced 2026-05-10 16:18:03 +00:00
Map left and right C buttons to the touch screen
This commit is contained in:
parent
ced75f92b7
commit
f4e7a6b4b9
|
|
@ -53,4 +53,10 @@ void osContGetReadData(OSContPad *pad) {
|
|||
if (keys & KEY_RIGHT) {
|
||||
pad->stick_x = 80;
|
||||
}
|
||||
|
||||
if (keys & KEY_TOUCH) {
|
||||
touchPosition pos;
|
||||
touchRead(&pos);
|
||||
pad->button |= (pos.px < 128) ? L_CBUTTONS : R_CBUTTONS;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue