0ad/source/ps/Globals.h
prefect a5a9f4b657 g++ compilation fixes.
Fix: Unix symbol resolver ignores NULL parameters like Windows resolver
instead of crashing.
Fix: Bugs and crashes in the input system, caused by wrong use of
SDL_BUTTON_* constants.

This was SVN commit r2984.
2005-10-21 18:32:16 +00:00

17 lines
524 B
C

extern bool g_active;
extern bool g_keys[SDLK_LAST];
extern int g_mouse_x, g_mouse_y;
/**
* g_mouse_buttons: Mouse buttons states, indexed by SDL_BUTTON_* constants. If an entry
* is true, it represents a pressed button.
*
* Be aware that SDL_BUTTON_* constants start at 1. Therefore, g_mouse_buttons[0] is unused.
* Thus, the order of entries is { unused, left, right, middle, wheel up, wheel down }
*/
extern bool g_mouse_buttons[6];
extern InReaction GlobalsInputHandler(const SDL_Event* ev);