diff --git a/src/nds/nds_controller.c b/src/nds/nds_controller.c index dc24753b..b7aecbfb 100644 --- a/src/nds/nds_controller.c +++ b/src/nds/nds_controller.c @@ -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; + } }