Panda3D
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
InputDevice::ButtonState Class Reference

Public Member Functions

 ButtonState (ButtonHandle handle)
 
bool is_known () const
 
bool is_pressed () const
 
 operator bool ()
 

Public Attributes

State _state = S_unknown
 
ButtonHandle handle = ButtonHandle::none()
 
 is_known
 True if the button state is currently known.
 
 is_pressed
 True if the button is currently known to be pressed.
 

Detailed Description

Definition at line 145 of file inputDevice.h.

Constructor & Destructor Documentation

◆ ButtonState()

InputDevice::ButtonState::ButtonState ( ButtonHandle handle)
inline

Definition at line 391 of file inputDevice.I.

Member Function Documentation

◆ operator bool()

InputDevice::ButtonState::operator bool ( )
inline

Definition at line 153 of file inputDevice.h.

Member Data Documentation

◆ _state

State InputDevice::ButtonState::_state = S_unknown

Definition at line 161 of file inputDevice.h.

◆ handle

ButtonHandle InputDevice::ButtonState::handle = ButtonHandle::none()

Definition at line 158 of file inputDevice.h.

◆ is_known

bool InputDevice::ButtonState::is_known
inline

True if the button state is currently known.

Definition at line 155 of file inputDevice.h.

Referenced by InputDevice::output_buttons(), and InputDevice::write_buttons().

◆ is_pressed

bool InputDevice::ButtonState::is_pressed
inline

True if the button is currently known to be pressed.

Definition at line 156 of file inputDevice.h.


The documentation for this class was generated from the following files: