Gosu
Public Member Functions | List of all members
Gosu::Button Class Reference

Very lightweight class that identifies a button (keyboard, mouse or other device). More...

Public Member Functions

 Button (unsigned id)
 For internal use. More...
 
unsigned id () const
 For internal use. More...
 
 Button ()
 Default constructor; == no_button. More...
 
 Button (ButtonName name)
 Conversion from ButtonName constants. More...
 

Detailed Description

Very lightweight class that identifies a button (keyboard, mouse or other device).

Definition at line 16 of file Input.hpp.

Constructor & Destructor Documentation

◆ Button() [1/3]

Gosu::Button::Button ( unsigned  id)
explicit

For internal use.

Definition at line 22 of file Input.hpp.

◆ Button() [2/3]

Gosu::Button::Button ( )

Default constructor; == no_button.

Definition at line 27 of file Input.hpp.

◆ Button() [3/3]

Gosu::Button::Button ( ButtonName  name)

Conversion from ButtonName constants.

Definition at line 30 of file Input.hpp.

Member Function Documentation

◆ id()

unsigned Gosu::Button::id ( ) const

For internal use.

Definition at line 24 of file Input.hpp.

Referenced by Gosu::operator<(), and Gosu::operator==().


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