![]() |
Chesto 0.9
A declarative and element-based library for creating GUIs on homebrew'd consoles
|

Public Member Functions | |
| bool | held (int buttons) |
| whether or not a button is pressed during this cycle More... | |
| bool | pressed (int buttons) |
| bool | released (int buttons) |
| bool | touchIn (int x, int width, int y, int height) |
| whether or not a touch is detected within the specified rect in this cycle More... | |
| bool | processSDLEvents () |
| update which buttons are pressed More... | |
| bool | update () |
| bool | isTouchDown () |
| bool | isTouchUp () |
| bool | isTouchDrag () |
| bool | isTouch () |
| bool | isScroll () |
| bool | isKeyDown () |
| bool | isKeyUp () |
| bool | processDirectionalButtons () |
| int | directionForKeycode () |
| void | toggleHeldButtons () |
| void | processJoystickHotplugging (SDL_Event *event) |
| joystick device events processing More... | |
Static Public Member Functions | |
| static GamepadInfo & | getLastGamepadInfo () |
Public Attributes | |
| bool | allowTouch = true |
| bool | isScrolling = false |
| CST_Keycode | keyCode = -1 |
| CST_Keymod | mod = -1 |
| SDL_Event | event |
| bool | held_directions [4] = { false, false, false, false } |
| Uint32 | held_type |
| int | rapidFireRate = 12 |
| int | curFrame = 0 |
| std::function< void()> | quitaction = NULL |
| float | wheelScroll = 0 |
| int | yPos = 0 |
| int | xPos = 0 |
| bool | noop = false |
| Uint32 | type |
Static Public Attributes | |
| static bool | bypassKeyEvents = false |
| static std::string | lastGamepadKey = defaultKeyName |
Definition at line 77 of file InputEvents.hpp.
| Chesto::InputEvents::InputEvents | ( | ) |
Definition at line 71 of file InputEvents.cpp.
| int Chesto::InputEvents::directionForKeycode | ( | ) |
Definition at line 252 of file InputEvents.cpp.
|
static |
Definition at line 377 of file InputEvents.cpp.
| bool Chesto::InputEvents::held | ( | int | buttons | ) |
whether or not a button is pressed during this cycle
Definition at line 283 of file InputEvents.cpp.
Referenced by Chesto::Button::process(), Chesto::EKeyboard::process(), and Chesto::DropDownChoices::process().
| bool Chesto::InputEvents::isKeyDown | ( | ) |
Definition at line 344 of file InputEvents.cpp.
| bool Chesto::InputEvents::isKeyUp | ( | ) |
Definition at line 349 of file InputEvents.cpp.
| bool Chesto::InputEvents::isScroll | ( | ) |
Definition at line 339 of file InputEvents.cpp.
| bool Chesto::InputEvents::isTouch | ( | ) |
Definition at line 334 of file InputEvents.cpp.
| bool Chesto::InputEvents::isTouchDown | ( | ) |
Definition at line 319 of file InputEvents.cpp.
| bool Chesto::InputEvents::isTouchDrag | ( | ) |
Definition at line 324 of file InputEvents.cpp.
| bool Chesto::InputEvents::isTouchUp | ( | ) |
Definition at line 329 of file InputEvents.cpp.
| bool Chesto::InputEvents::pressed | ( | int | buttons | ) |
Definition at line 304 of file InputEvents.cpp.
| bool Chesto::InputEvents::processDirectionalButtons | ( | ) |
Definition at line 225 of file InputEvents.cpp.
| void Chesto::InputEvents::processJoystickHotplugging | ( | SDL_Event * | event | ) |
joystick device events processing
Definition at line 354 of file InputEvents.cpp.
Referenced by processSDLEvents().
| bool Chesto::InputEvents::processSDLEvents | ( | ) |
update which buttons are pressed
Definition at line 79 of file InputEvents.cpp.
References processJoystickHotplugging().
| bool Chesto::InputEvents::released | ( | int | buttons | ) |
Definition at line 309 of file InputEvents.cpp.
| void Chesto::InputEvents::toggleHeldButtons | ( | ) |
Definition at line 195 of file InputEvents.cpp.
| bool Chesto::InputEvents::touchIn | ( | int | x, |
| int | width, | ||
| int | y, | ||
| int | height | ||
| ) |
whether or not a touch is detected within the specified rect in this cycle
Definition at line 314 of file InputEvents.cpp.
Referenced by Chesto::EKeyboard::process(), and Chesto::Element::process().
| bool Chesto::InputEvents::update | ( | ) |
Definition at line 185 of file InputEvents.cpp.
| bool Chesto::InputEvents::allowTouch = true |
Definition at line 94 of file InputEvents.hpp.
|
static |
Definition at line 125 of file InputEvents.hpp.
| int Chesto::InputEvents::curFrame = 0 |
Definition at line 123 of file InputEvents.hpp.
| SDL_Event Chesto::InputEvents::event |
Definition at line 117 of file InputEvents.hpp.
| bool Chesto::InputEvents::held_directions[4] = { false, false, false, false } |
Definition at line 119 of file InputEvents.hpp.
| Uint32 Chesto::InputEvents::held_type |
Definition at line 120 of file InputEvents.hpp.
| bool Chesto::InputEvents::isScrolling = false |
Definition at line 95 of file InputEvents.hpp.
| CST_Keycode Chesto::InputEvents::keyCode = -1 |
Definition at line 115 of file InputEvents.hpp.
|
static |
Definition at line 127 of file InputEvents.hpp.
| CST_Keymod Chesto::InputEvents::mod = -1 |
Definition at line 116 of file InputEvents.hpp.
| bool Chesto::InputEvents::noop = false |
Definition at line 135 of file InputEvents.hpp.
| std::function<void()> Chesto::InputEvents::quitaction = NULL |
Definition at line 129 of file InputEvents.hpp.
| int Chesto::InputEvents::rapidFireRate = 12 |
Definition at line 122 of file InputEvents.hpp.
| Uint32 Chesto::InputEvents::type |
Definition at line 137 of file InputEvents.hpp.
| float Chesto::InputEvents::wheelScroll = 0 |
Definition at line 131 of file InputEvents.hpp.
| int Chesto::InputEvents::xPos = 0 |
Definition at line 134 of file InputEvents.hpp.
| int Chesto::InputEvents::yPos = 0 |
Definition at line 133 of file InputEvents.hpp.