R-Type
Distributed multiplayer game engine in C++
Loading...
Searching...
No Matches
InputEvent.hpp File Reference
#include <cstdint>
#include "Events/IEvent.hpp"
Include dependency graph for InputEvent.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  InputEvent
 Event representing a player input action. More...
 

Enumerations

enum class  InputAction {
  MOVE_UP , MOVE_DOWN , MOVE_LEFT , MOVE_RIGHT ,
  SHOOT , PAUSE , QUIT
}
 Available player input actions. More...
 
enum class  InputState { PRESSED , RELEASED , HELD }
 State of an input action. More...
 

Enumeration Type Documentation

◆ InputAction

enum class InputAction
strong

Available player input actions.

Defines all possible actions a player can perform in R-Type.

Enumerator
MOVE_UP 

Move player ship upward.

MOVE_DOWN 

Move player ship downward.

MOVE_LEFT 

Move player ship to the left.

MOVE_RIGHT 

Move player ship to the right.

SHOOT 

Fire weapon.

PAUSE 

Pause/unpause the game.

QUIT 

Request to quit the game.

Definition at line 20 of file InputEvent.hpp.

◆ InputState

enum class InputState
strong

State of an input action.

Represents the current state of a button or key.

Enumerator
PRESSED 

Input just pressed this frame.

RELEASED 

Input just released this frame.

HELD 

Input held down (continuous)

Definition at line 36 of file InputEvent.hpp.