Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
|
#include "precompiled.h"
#include "Globals.h"
#include "network/NetClient.h"
#include "ps/GameSetup/Config.h"
#include "soundmanager/ISoundManager.h"
Functions | |
InReaction | GlobalsInputHandler (const SDL_Event_ *ev) |
Variables | |
bool | g_app_minimized = false |
bool | g_app_has_focus = true |
std::unordered_map< int32_t, bool > | g_scancodes |
g_scancodes: Key states, indexed by SDL_Scancode constants. More... | |
int | g_mouse_x = 50 |
int | g_mouse_y = 50 |
bool | g_mouse_active = true |
Indicates whether the mouse is focused on the game window (mouse positions should usually be considered inaccurate if this is false) More... | |
bool | g_mouse_buttons [MOUSE_LAST - MOUSE_BASE] = {0} |
g_mouse_buttons: Mouse buttons states, indexed by SDL_BUTTON_* constants. More... | |
PIFrequencyFilter | g_frequencyFilter |
InReaction GlobalsInputHandler | ( | const SDL_Event_ * | ev | ) |
bool g_app_has_focus = true |
bool g_app_minimized = false |
PIFrequencyFilter g_frequencyFilter |
bool g_mouse_active = true |
Indicates whether the mouse is focused on the game window (mouse positions should usually be considered inaccurate if this is false)
bool g_mouse_buttons[MOUSE_LAST - MOUSE_BASE] = {0} |
g_mouse_buttons: Mouse buttons states, indexed by SDL_BUTTON_* constants.
If an entry is true, it represents a pressed button. Updated by GlobalsInputHandler in response to mouse button up/down events.
Be aware that SDL_BUTTON_* constants start at 1. Therefore, g_mouse_buttons[0] is unused. The order of entries is as in KeyName.h for MOUSE_*
int g_mouse_x = 50 |
int g_mouse_y = 50 |
std::unordered_map<int32_t, bool> g_scancodes |
g_scancodes: Key states, indexed by SDL_Scancode constants.
If an entry is true, it represents a pressed key. Updated by GlobalsInputHandler in response to key press/release events.