libnds
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Functions
arm9/input.h File Reference

NDS button and touchscreen input support. More...

#include <nds/touch.h>
#include <nds/input.h>

Functions

uint32 keysCurrent (void)
 Obtains the current keypad state. Call this function to get keypad state without affecting state of other key functions (keysUp keysHeld etc...)
 
uint32 keysDown (void)
 Obtains the current keypad pressed state.
 
uint32 keysDownRepeat (void)
 Obtains the current keypad pressed or repeating state.
 
uint32 keysHeld (void)
 Obtains the current keypad held state.
 
void keysSetRepeat (u8 setDelay, u8 setRepeat)
 Sets the key repeat parameters. More...
 
uint32 keysUp (void)
 Obtains the current keypad released state.
 
void scanKeys (void)
 Obtains the current keypad state. Call this function once per main loop in order to use the keypad functions.
 
void touchRead (touchPosition *data)
 Obtains the current touchpad state. More...
 

Detailed Description

NDS button and touchscreen input support.

Function Documentation

void keysSetRepeat ( u8  setDelay,
u8  setRepeat 
)

Sets the key repeat parameters.

Parameters
setDelayNumber of scanKeys calls before keys start to repeat.
setRepeatNumber of scanKeys calls before keys repeat.
void touchRead ( touchPosition data)

Obtains the current touchpad state.

Parameters
dataa touchPosition ptr which will be filled by the function.