Spore/Input.h file

Contents

Classes

union KeyModifiers
union MouseState
struct GameInput
This structure keeps track of all the input in the game, such as keys pressed/released, the mouse position, etc.

Enums

enum KeyModifierFlags { kModifierShiftDown = 1, kModifierCtrlDown = 2, kModifierAltDown = 4 }
enum MouseStateFlags { kMouseShiftDown = 1, kMouseCtrlDown = 2, kMouseAltDown = 4, kMouseLeftButtonDown = 8, kMouseMiddleButtonDown = 16, kMouseRightButtonDown = 32 }
enum MouseButton { kMouseButtonNone = 0, kMouseButtonLeft = 1000, kMouseButtonWheel = 1001, kMouseButtonRight = 1002, kMouseButton3 = 1003, kMouseButton4 = 1004, kMouseButton5 = 1005, kMouseButton6 = 1006, kMouseButton7 = 1007 }

Functions

auto Addresses(GameInput) -> namespace
auto_METHOD_VOID(GameInput, OnKeyDown, Args(int vkCode, KeyModifiers modifiers), Args(vkCode, modifiers))
auto_METHOD_VOID(GameInput, OnKeyUp, Args(int vkCode, KeyModifiers modifiers), Args(vkCode, modifiers))
auto_STATIC_METHOD(GameInput, bool, IsMouseButtonDown, Args(MouseButton button), Args(button))