keys.h File Reference

Key handler definitions. More...

Go to the source code of this file.

Defines

#define KEY_NOT_PRESSED   0x00
 Key state definitions.
#define KEY_IS_DOWN   0x01
 Key state KEY_IS_DOWN.
#define KEY_PENDING   0x02
 Key state KEY_PENDING.
#define KEY_IS_LOCKED   0x04
 Key state KEY_NOT_PRESSED.
#define KEY_ACTION_DOWN   0x10
 Key state definitions.
#define KEY_ACTION_UP   0x20
 Key action KEY_ACTION_UP.
#define KEY_ACTION_HOLD   0x40
 Key action KEY_ACTION_HOLD.
#define KEY_ACTION_SHORT   0x80
 Key action KEY_ACTION_SHORT.

Functions

int NutGetKeyState (HANDLE keyh)
 reads actual state of a key
uint32_t NutGetKeyTime (HANDLE keyh)
 reads the time in ms of how long the key is or was pressed
int NutRegisterKey (HANDLE *keyhp, HANDLE *event, int bank, int pin, int fx, uint32_t fxt)
 register a key and describe its function


Detailed Description

Key handler definitions.

Definition in file keys.h.


© 2000-2007 by egnite Software GmbH - visit http://www.ethernut.de/