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.
 
unsigned id () const
 For internal use.
 
 Button ()
 Default constructor; == noButton.
 
 Button (ButtonName name)
 Conversion from ButtonName constants.
 

Detailed Description

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

Definition at line 36 of file Input.hpp.

Constructor & Destructor Documentation

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

For internal use.

Definition at line 42 of file Input.hpp.

Gosu::Button::Button ( )

Default constructor; == noButton.

Definition at line 47 of file Input.hpp.

Gosu::Button::Button ( ButtonName  name)

Conversion from ButtonName constants.

Definition at line 50 of file Input.hpp.

Member Function Documentation

unsigned Gosu::Button::id ( ) const

For internal use.

Definition at line 44 of file Input.hpp.

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


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