Panda3D
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. More...
 
 is_pressed
 True if the button is currently known to be pressed. More...
 

Detailed Description

Definition at line 139 of file inputDevice.h.

Member Data Documentation

◆ is_known

bool InputDevice::ButtonState::is_known
inline

True if the button state is currently known.

Definition at line 149 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 150 of file inputDevice.h.


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