# keyboard.h

## Defines
#define | KEYPRESSED 0x1
#define | KEYNEW 0x2
#define | KEYREPEAT 0x4
## Typedefs
typedef void *(* | KEY_CALLBACK )(char *, void *)
## Functions
void | keydown (ALLEGRO_KEYBOARD_EVENT *kb)
void | keyup (ALLEGRO_KEYBOARD_EVENT *kb)
void | keyrepeat (ALLEGRO_KEYBOARD_EVENT *kb)
void | keyupdate (void)
void | keyclear (void)
void * | keycheck (KEY_CALLBACK func, void *data)

## Detailed Description

Handles keyboard input

Note:
  Does not trigger keyboard events; events are handled by the keyhandler function in the handler.c routines. The keyhandler function is called by this modules keycheck function via a function pointer.

## Define Documentation

#define KEYNEW 0x2

Definition at line 18 of file keyboard.h.

#define KEYPRESSED 0x1

Definition at line 17 of file keyboard.h.

#define KEYREPEAT 0x4

Definition at line 19 of file keyboard.h.

## Typedef Documentation

typedef void*(* KEY_CALLBACK)(char *, void *)

Definition at line 23 of file keyboard.h.

## Function Documentation

void* keycheck | ( | KEY_CALLBACK | func,
|  | void * | data |
| ) |  |  |

Definition at line 82 of file keyboard.c.

void keyclear | ( | void |  | ) |

Definition at line 74 of file keyboard.c.

void keydown | ( | ALLEGRO_KEYBOARD_EVENT * | kb | ) |

Definition at line 34 of file keyboard.c.

void keyrepeat | ( | ALLEGRO_KEYBOARD_EVENT * | kb | ) |

Definition at line 51 of file keyboard.c.

void keyup | ( | ALLEGRO_KEYBOARD_EVENT * | kb | ) |

Definition at line 43 of file keyboard.c.

void keyupdate | ( | void |  | ) |

Definition at line 59 of file keyboard.c.