Antkeeper  0.0.1
Public Attributes | List of all members
input::gamepad_axis_moved_event Struct Reference

Event generated when a gamepad axis has been moved. More...

#include <gamepad-events.hpp>

Public Attributes

gamepadgamepad {nullptr}
 Gamepad that generated the event. More...
 
gamepad_axis axis {0}
 Gamepad axis being moved. More...
 
float position {0.0f}
 Position of the gamepad axis, on [-1, 1]. More...
 

Detailed Description

Event generated when a gamepad axis has been moved.

Definition at line 57 of file gamepad-events.hpp.

Member Data Documentation

◆ axis

gamepad_axis input::gamepad_axis_moved_event::axis {0}

Gamepad axis being moved.

Definition at line 63 of file gamepad-events.hpp.

◆ gamepad

gamepad* input::gamepad_axis_moved_event::gamepad {nullptr}

Gamepad that generated the event.

Definition at line 60 of file gamepad-events.hpp.

◆ position

float input::gamepad_axis_moved_event::position {0.0f}

Position of the gamepad axis, on [-1, 1].

Definition at line 66 of file gamepad-events.hpp.


The documentation for this struct was generated from the following file: