Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

KeyPad.hpp File Reference

#include <NDS/jtypes.h>

Include dependency graph for KeyPad.hpp:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Classes

class  KeyPad
 Provides an interface to access the DS keypad more like a normal keyboard. More...

struct  KeyPad::keyData
 Helper structure used by KeyPad to keep track of which buttons are pressed, and their current states, and repeat data. More...


Enumerations

enum  KP_Keys {
  KP_KEY_A, KP_KEY_B, KP_KEY_SELECT, KP_KEY_START,
  KP_KEY_RIGHT, KP_KEY_LEFT, KP_KEY_UP, KP_KEY_DOWN,
  KP_KEY_R, KP_KEY_L, KP_NUM_KEYS, KP_LAST_KEY = KP_KEY_L,
  KP_FIRST_KEY = KP_KEY_A
}
 The various keys that are tracked. More...


Detailed Description

Definitions that make the DS keypad behave more like a keyboard. It is possible to query the current state of the keys, but more interestingly, it allows an application to set a repeat delay and a repeat rate, and then provides an interface that gets the current key events.

Enumeration Type Documentation

enum KP_Keys
 

The various keys that are tracked.

Enumeration values:
KP_KEY_A  The 'A' key.
KP_KEY_B  The 'B' key.
KP_KEY_SELECT  The SELECT key.
KP_KEY_START  The START key.
KP_KEY_RIGHT  Right on the D-pad.
KP_KEY_LEFT  Left on the D-pad.
KP_KEY_UP  Up on the D-pad.
KP_KEY_DOWN  Down on the D-pad.
KP_KEY_R  The right "trigger" button.
KP_KEY_L  The left "trigger" button.
KP_NUM_KEYS  Number of keys available.
KP_LAST_KEY  Used for looping.
KP_FIRST_KEY  Used for looping.


Generated on Fri Apr 22 13:47:43 2005 for PhoenixRising NDS Library by doxygen 1.3.6