# mouse.h

## Data Structures
struct | MOUSE
## Typedefs
typedef void *(* | MOUSE_CALLBACK )(MOUSE *, void *)
## Enumerations
enum | MOUSEEVENTS { MOUSE_L = 0x1, MOUSE_L_NEW = 0x2, MOUSE_R = 0x4, MOUSE_R_NEW = 0x8, MOUSE_M = 0x10, MOUSE_M_NEW = 0x20 }
## Functions
void | mousedown (ALLEGRO_MOUSE_EVENT *mouse_data)
void | mouseup (ALLEGRO_MOUSE_EVENT *mouse_data)
void | mouseaxes (ALLEGRO_MOUSE_EVENT *mouse_data)
void | mouseupdate (void)
void * | mousecheck (MOUSE_CALLBACK func, void *data)

## Detailed Description

Handles mouse input

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

## Typedef Documentation

typedef void*(* MOUSE_CALLBACK)(MOUSE *, void *)

Definition at line 40 of file mouse.h.

## Enumeration Type Documentation

enum MOUSEEVENTS

Enumerator:

  MOUSE_L |
  MOUSE_L_NEW |
  MOUSE_R |
  MOUSE_R_NEW |
  MOUSE_M |
  MOUSE_M_NEW |

Definition at line 17 of file mouse.h.

## Function Documentation

void mouseaxes | ( | ALLEGRO_MOUSE_EVENT * | mouse_data | ) |

Definition at line 52 of file mouse.c.

void* mousecheck | ( | MOUSE_CALLBACK | func,
|  | void * | data |
| ) |  |  |

Definition at line 79 of file mouse.c.

void mousedown | ( | ALLEGRO_MOUSE_EVENT * | mouse_data | ) |

Definition at line 36 of file mouse.c.

void mouseup | ( | ALLEGRO_MOUSE_EVENT * | mouse_data | ) |

Definition at line 44 of file mouse.c.

void mouseupdate | ( | void |  | ) |

Definition at line 65 of file mouse.c.