#include <input_context.hxx>
Inheritance diagram for InputContext:
Public Member Functions | |
InputContext () | |
virtual | ~InputContext () |
virtual bool | get_key (int key)=0 |
virtual int | get_mouse_x ()=0 |
virtual int | get_mouse_y ()=0 |
Vector2d | get_mouse_pos () |
bool | get_event (Event *event) |
Protected Attributes | |
std::queue< Event > | events |
|
Definition at line 35 of file input_context.hxx. |
|
Definition at line 36 of file input_context.hxx. |
|
If an event is in the queue, copy it to event and return true, else return false and leave event untouched Definition at line 23 of file input_context.cxx. References events. |
|
Implemented in GlutDisplay, and X11Display. |
|
Definition at line 50 of file input_context.hxx. References get_mouse_y(). Referenced by WorldViewColliderTool::draw_background(), WorldViewInsertTool::draw_foreground(), WorldViewColliderTool::draw_foreground(), WorldGUIManager::draw_overlay(), WorldViewColliderTool::on_primary_button_press(), and WorldViewColliderTool::on_primary_button_release(). |
|
Implemented in GlutDisplay, and X11Display. Referenced by WorldViewInsertTool::draw_background(), WorldViewZoomTool::draw_foreground(), WorldViewSelectTool::draw_foreground(), and WorldViewInsertTool::draw_foreground(). |
|
Implemented in GlutDisplay, and X11Display. Referenced by WorldViewInsertTool::draw_background(), WorldViewZoomTool::draw_foreground(), WorldViewSelectTool::draw_foreground(), WorldViewInsertTool::draw_foreground(), and get_mouse_pos(). |
|
Definition at line 33 of file input_context.hxx. Referenced by get_event(), GlutDisplay::keyboard_func(), and GlutDisplay::mouse_func(). |