Buttons.hpp File Reference

Go to the source code of this file.

Namespaces

 Gosu
 The library's main namespace.
 

Macros

#define GOSU_SCANCODE(mac, linux_or_windows)   linux_or_windows
 
#define GOSU_SPECIAL_SCANCODE(mac, windows, linux)   linux
 

Enumerations

enum  Gosu::ButtonName {
  Gosu::kbRangeBegin, Gosu::kbEscape = 0x01, Gosu::kbF1 = 0x3b, Gosu::kbF2 = 0x3c,
  Gosu::kbF3 = 0x3d, Gosu::kbF4 = 0x3e, Gosu::kbF5 = 0x3f, Gosu::kbF6 = 0x40,
  Gosu::kbF7 = 0x41, Gosu::kbF8 = 0x42, Gosu::kbF9 = 0x43, Gosu::kbF10 = 0x44,
  Gosu::kbF11 = 0x57, Gosu::kbF12 = 0x58, Gosu::kb0 = 0x0b, Gosu::kb1 = 0x02,
  Gosu::kb2 = 0x03, Gosu::kb3 = 0x04, Gosu::kb4 = 0x05, Gosu::kb5 = 0x06,
  Gosu::kb6 = 0x07, Gosu::kb7 = 0x08, Gosu::kb8 = 0x09, Gosu::kb9 = 0x0a,
  Gosu::kbTab = 0x0f, Gosu::kbReturn = 0x1c, Gosu::kbSpace = 0x39, Gosu::kbLeftShift = 0x2a,
  Gosu::kbRightShift = 0x36, Gosu::kbLeftControl = 0x1d, Gosu::kbRightControl = 0x61, Gosu::kbLeftAlt = 0x38,
  Gosu::kbRightAlt = 0x64, Gosu::kbLeftMeta = 0x7d, Gosu::kbRightMeta = 0x7e, Gosu::kbBackspace = 0x0e,
  Gosu::kbLeft = 0x69, Gosu::kbRight = 0x6a, Gosu::kbUp = 0x67, Gosu::kbDown = 0x6c,
  Gosu::kbHome = 0x66, Gosu::kbEnd = 0x6b, Gosu::kbInsert = 0x6e, Gosu::kbDelete = 0x6f,
  Gosu::kbPageUp = 0x68, Gosu::kbPageDown = 0x6d, Gosu::kbEnter = 0x60, Gosu::kbBacktick = 0x29,
  Gosu::kbMinus = 0x0c, Gosu::kbEqual = 0x0d, Gosu::kbBracketLeft = 0x1a, Gosu::kbBracketRight = 0x1b,
  Gosu::kbBackslash = 0x2b, Gosu::kbSemicolon = 0x27, Gosu::kbApostrophe = 0x28, Gosu::kbComma = 0x33,
  Gosu::kbPeriod = 0x34, Gosu::kbSlash = 0x35, Gosu::kbA = 0x1e, Gosu::kbB = 0x30,
  Gosu::kbC = 0x2e, Gosu::kbD = 0x20, Gosu::kbE = 0x12, Gosu::kbF = 0x21,
  Gosu::kbG = 0x22, Gosu::kbH = 0x23, Gosu::kbI = 0x17, Gosu::kbJ = 0x24,
  Gosu::kbK = 0x25, Gosu::kbL = 0x26, Gosu::kbM = 0x32, Gosu::kbN = 0x31,
  Gosu::kbO = 0x18, Gosu::kbP = 0x19, Gosu::kbQ = 0x10, Gosu::kbR = 0x13,
  Gosu::kbS = 0x1f, Gosu::kbT = 0x14, Gosu::kbU = 0x16, Gosu::kbV = 0x2f,
  Gosu::kbW = 0x11, Gosu::kbX = 0x2d, Gosu::kbY = 0x15, Gosu::kbZ = 0x2c,
  Gosu::kbNumpad0 = 0x52, Gosu::kbNumpad1 = 0x4f, Gosu::kbNumpad2 = 0x50, Gosu::kbNumpad3 = 0x51,
  Gosu::kbNumpad4 = 0x4b, Gosu::kbNumpad5 = 0x4c, Gosu::kbNumpad6 = 0x4d, Gosu::kbNumpad7 = 0x47,
  Gosu::kbNumpad8 = 0x48, Gosu::kbNumpad9 = 0x49, Gosu::kbNumpadAdd = 0x4e, Gosu::kbNumpadSubtract = 0x4a,
  Gosu::kbNumpadMultiply = 0x37, Gosu::kbNumpadDivide = 0xb5, Gosu::kbRangeEnd = 0xff, Gosu::msRangeBegin,
  Gosu::msLeft = msRangeBegin, Gosu::msRight, Gosu::msMiddle, Gosu::msWheelUp,
  Gosu::msWheelDown, Gosu::msOther0, Gosu::msOther1, Gosu::msOther2,
  Gosu::msOther3, Gosu::msOther4, Gosu::msOther5, Gosu::msOther6,
  Gosu::msOther7, Gosu::msRangeEnd = 0x110, Gosu::gpRangeBegin, Gosu::gpLeft = gpRangeBegin,
  Gosu::gpRight, Gosu::gpUp, Gosu::gpDown, Gosu::gpButton0,
  Gosu::gpButton1, Gosu::gpButton2, Gosu::gpButton3, Gosu::gpButton4,
  Gosu::gpButton5, Gosu::gpButton6, Gosu::gpButton7, Gosu::gpButton8,
  Gosu::gpButton9, Gosu::gpButton10, Gosu::gpButton11, Gosu::gpButton12,
  Gosu::gpButton13, Gosu::gpButton14, Gosu::gpButton15, Gosu::gp0Left,
  Gosu::gp0Right, Gosu::gp0Up, Gosu::gp0Down, Gosu::gp0Button0,
  Gosu::gp0Button1, Gosu::gp0Button2, Gosu::gp0Button3, Gosu::gp0Button4,
  Gosu::gp0Button5, Gosu::gp0Button6, Gosu::gp0Button7, Gosu::gp0Button8,
  Gosu::gp0Button9, Gosu::gp0Button10, Gosu::gp0Button11, Gosu::gp0Button12,
  Gosu::gp0Button13, Gosu::gp0Button14, Gosu::gp0Button15, Gosu::gp1Left,
  Gosu::gp1Right, Gosu::gp1Up, Gosu::gp1Down, Gosu::gp1Button0,
  Gosu::gp1Button1, Gosu::gp1Button2, Gosu::gp1Button3, Gosu::gp1Button4,
  Gosu::gp1Button5, Gosu::gp1Button6, Gosu::gp1Button7, Gosu::gp1Button8,
  Gosu::gp1Button9, Gosu::gp1Button10, Gosu::gp1Button11, Gosu::gp1Button12,
  Gosu::gp1Button13, Gosu::gp1Button14, Gosu::gp1Button15, Gosu::gp2Left,
  Gosu::gp2Right, Gosu::gp2Up, Gosu::gp2Down, Gosu::gp2Button0,
  Gosu::gp2Button1, Gosu::gp2Button2, Gosu::gp2Button3, Gosu::gp2Button4,
  Gosu::gp2Button5, Gosu::gp2Button6, Gosu::gp2Button7, Gosu::gp2Button8,
  Gosu::gp2Button9, Gosu::gp2Button10, Gosu::gp2Button11, Gosu::gp2Button12,
  Gosu::gp2Button13, Gosu::gp2Button14, Gosu::gp2Button15, Gosu::gp3Left,
  Gosu::gp3Right, Gosu::gp3Up, Gosu::gp3Down, Gosu::gp3Button0,
  Gosu::gp3Button1, Gosu::gp3Button2, Gosu::gp3Button3, Gosu::gp3Button4,
  Gosu::gp3Button5, Gosu::gp3Button6, Gosu::gp3Button7, Gosu::gp3Button8,
  Gosu::gp3Button9, Gosu::gp3Button10, Gosu::gp3Button11, Gosu::gp3Button12,
  Gosu::gp3Button13, Gosu::gp3Button14, Gosu::gp3Button15, Gosu::gpRangeEnd = gp3Button15,
  Gosu::numButtons = gpRangeEnd + 1, Gosu::numGamepads = 4, Gosu::noButton = 0xffffffff, Gosu::kbNum = kbRangeEnd - kbRangeBegin + 1,
  Gosu::msNum = msRangeEnd - msRangeBegin + 1, Gosu::gpNum = gpRangeEnd - gpRangeBegin + 1, Gosu::gpNumPerGamepad = gpNum / (numGamepads + 1)
}
 List of button ids that can be used with Gosu::Input. More...
 

Macro Definition Documentation

#define GOSU_SCANCODE (   mac,
  linux_or_windows 
)    linux_or_windows

Definition at line 10 of file Buttons.hpp.

#define GOSU_SPECIAL_SCANCODE (   mac,
  windows,
  linux 
)    linux

Definition at line 14 of file Buttons.hpp.