Gosu::Button Class Reference

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

List of all members.

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 38 of file Input.hpp.


Constructor & Destructor Documentation

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

For internal use.

Definition at line 44 of file Input.hpp.

Gosu::Button::Button (  ) 

Default constructor; == noButton.

Definition at line 49 of file Input.hpp.

Gosu::Button::Button ( ButtonName  name  ) 

Conversion from ButtonName constants.

Definition at line 52 of file Input.hpp.


Member Function Documentation

unsigned Gosu::Button::id (  )  const

For internal use.

Definition at line 46 of file Input.hpp.

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


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