|
libnds
|
High-level touchscreen functions for ARM7. More...
Functions | |
| void | touchApplyCalibration (u16 rawx, u16 rawy, u16 *px, u16 *py) |
| Apply calibration to raw X/Y touch screen measurements. | |
| void | touchInit (void) |
| Initialize the touch subsystem (NDS/DSi). | |
| bool | touchPenDown (void) |
| Checks if the screen is currently being touched. | |
| bool | touchReadData (touchRawArray *data) |
| Read a complete, raw touch measurement into the provided buffer. | |
| void | touchReadXY (touchPosition *touchPos) |
| Read a touch X/Y position into the provided buffer. | |
High-level touchscreen functions for ARM7.
Apply calibration to raw X/Y touch screen measurements.
| rawx | Raw X value |
| rawy | Raw Y value |
| px | Calibrated X value |
| py | Calibrated Y value |
| bool touchPenDown | ( | void | ) |
Checks if the screen is currently being touched.
| bool touchReadData | ( | touchRawArray * | data | ) |
Read a complete, raw touch measurement into the provided buffer.
| data | Struct to hold the read data. |
| void touchReadXY | ( | touchPosition * | touchPos | ) |
Read a touch X/Y position into the provided buffer.
| touchPos | Struct to hold the read data. |