nCine/Input/InputEvents.h file

Namespaces

namespace nCine
Root namespace of nCine game engine.

Classes

struct nCine::HatState
Bit flags describing the direction of a joystick hat (D-pad).
class nCine::TouchEvent
Screen touch event.
struct nCine::TouchEvent::Pointer
State of a single touch pointer.
class nCine::AccelerometerEvent
Accelerometer sensor reading.
class nCine::MouseState
Current state of the mouse.
class nCine::MouseEvent
Mouse button event.
class nCine::ScrollEvent
Scroll event (mouse wheel, touchpad gesture, etc.).
class nCine::KeyboardState
Current state of the keyboard.
class nCine::KeyboardEvent
Keyboard key event.
class nCine::TextInputEvent
Text input event.
class nCine::JoystickState
Current raw state of a joystick.
class nCine::JoyButtonEvent
Joystick button event.
class nCine::JoyHatEvent
Joystick hat event.
class nCine::JoyAxisEvent
Joystick axis event.
class nCine::JoyConnectionEvent
Joystick connection or disconnection event.
class nCine::JoyMappedState
Current state of a joystick translated through its mapping into unified buttons and axes.
class nCine::JoyMappedButtonEvent
Mapped joystick button event.
class nCine::JoyMappedAxisEvent
Mapped joystick axis event.

Enums

enum class ButtonName : std::int16_t { Unknown = -1, A = 0, B, X, Y, Back, Guide, Start, LeftStick, RightStick, LeftBumper, RightBumper, Up, Down, Left, Right, Misc1, Paddle1, Paddle2, Paddle3, Paddle4, Touchpad, Count }
Gamepad buttons.
enum class AxisName : std::int16_t { Unknown = -1, LeftX = 0, LeftY, RightX, RightY, LeftTrigger, RightTrigger }
Gamepad axes.
enum class TouchEventType { Down, Up, Move, PointerDown, PointerUp }
Type of a touch event.
enum class MouseButton : short int { Left, Right, Middle, Fourth, Fifth }
Mouse buttons.