libnds
Functions
arm7/input.h File Reference

Keypad and touch pad ARM7 helpers. More...

#include <nds/ndstypes.h>

Functions

void inputGetAndSend (void)
 Send ARM7-side input information (X, Y, touch, lid) to ARM9 via FIFO. More...
 
void inputSetLidSleepDuration (u16 frames)
 Set the amount of frames the lid has to be closed for to trigger sleep. More...
 

Detailed Description

Keypad and touch pad ARM7 helpers.

Function Documentation

◆ inputGetAndSend()

void inputGetAndSend ( void  )

Send ARM7-side input information (X, Y, touch, lid) to ARM9 via FIFO.

This should ideally be called once per frame on the ARM7 CPU.

◆ inputSetLidSleepDuration()

void inputSetLidSleepDuration ( u16  frames)

Set the amount of frames the lid has to be closed for to trigger sleep.

Setting this value to 0 will suppress system sleep on lid closing.

Parameters
framesThe number of frames.