21 #include <X11/Xutil.h>
35 explicit Button(
unsigned id) : id_(id) {}
37 unsigned id()
const {
return id_; }
49 return lhs.
id() == rhs.
id();
57 return lhs.
id() < rhs.
id();
78 const GOSU_UNIQUE_PTR<Impl> pimpl;
79 #if defined(GOSU_CPP11_ENABLED)
94 Input(
void* view,
float updateInterval);
95 void feedTouchEvent(
int type,
void* touches);
98 bool feedNSEvent(
void* event);
104 bool feedXEvent(::XEvent& event);
Includes all parts of C++03 (TR1) that are relevant for Gosu.
Convenient all-in-one class that serves as the foundation of a standard Gosu application.
Contains declarations of all of Gosu's available classes.
Struct that saves information about a touch on the surface of a multi- touch device.
std::vector< Touch > Touches
ButtonName
List of button ids that can be used with Gosu::Input.
float x
Position of a touch on the touch screen.
bool operator!=(Color a, Color b)
void * id
Allows for identification of a touch across calls.
TextInput instances are invisible objects that build a text string from input, using the current oper...
bool operator==(Color a, Color b)
bool operator<(Color a, Color b)