|
Allolib
1.0
C++ Components For Interactive Multimedia
|
Public Member Functions | |
| NavInputControl (double vscale=0.125, double tscale=2.) | |
| NavInputControl (Nav &nav, double vscale=0.125, double tscale=2.) | |
| NavInputControl (const NavInputControl &v) | |
| virtual bool | keyDown (const Keyboard &k) |
| Called when a keyboard key is pressed. | |
| virtual bool | keyUp (const Keyboard &k) |
| Called when a keyboard key is released. | |
| virtual bool | mouseDrag (const Mouse &m) |
| Called when the mouse moves while a button is down. | |
| void | nav (Nav &n) |
| Nav & | nav () |
| const Nav & | nav () const |
| void | active (bool b) |
| bool | active () |
| void | enable () |
| void | disable () |
| void | toggleActive () |
| double | vscale () const |
| NavInputControl & | vscale (double v) |
| double | tscale () const |
| NavInputControl & | tscale (double v) |
| void | useMouse (bool use) |
| virtual bool | mouseDown (const Mouse &m) |
| Called when a mouse button is pressed. | |
| virtual bool | mouseMove (const Mouse &m) |
| Called when the mouse moves. | |
| virtual bool | mouseUp (const Mouse &m) |
| Called when a mouse button is released. | |
| virtual bool | mouseScroll (const Mouse &m) |
| Called when mouse scrolled. | |
| virtual bool | resize (int dw, int dh) |
| Called whenever window dimensions change. | |
| virtual bool | visibility (bool v) |
| Called when window changes from hidden to shown and vice versa. | |
| WindowEventHandler & | windowEventHandler () |
| Return self. | |
| bool | attached () const |
| Window & | window () |
| const Window & | window () const |
Public Attributes | |
| Window * | mWindow |
Protected Attributes | |
| Nav * | mNav = nullptr |
| double | mVScale |
| double | mTScale |
| bool | mUseMouse |
| bool | mActive = true |
Mapping from keyboard and mouse controls to a Nav object
Definition at line 238 of file al_ControlNav.hpp.