Raftel Engine
 
Loading...
Searching...
No Matches
Raftel::Input::ButtonInfo Struct Reference

Stores information about a mouse button's state. More...

#include <input.hpp>

Public Attributes

Buttons b
 
bool up = true
 
bool down = false
 
bool this_frame = false
 
bool was_pressed_last_frame = false
 

Detailed Description

Stores information about a mouse button's state.

Definition at line 59 of file input.hpp.

Member Data Documentation

◆ b

Buttons Raftel::Input::ButtonInfo::b

The mouse button.

Definition at line 60 of file input.hpp.

◆ down

bool Raftel::Input::ButtonInfo::down = false

Whether the button is down.

Definition at line 62 of file input.hpp.

◆ this_frame

bool Raftel::Input::ButtonInfo::this_frame = false

Whether the button was pressed this frame.

Definition at line 63 of file input.hpp.

◆ up

bool Raftel::Input::ButtonInfo::up = true

Whether the button is up.

Definition at line 61 of file input.hpp.

◆ was_pressed_last_frame

bool Raftel::Input::ButtonInfo::was_pressed_last_frame = false

Whether the button was pressed in the last frame.

Definition at line 64 of file input.hpp.


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