Allolib  1.0
C++ Components For Interactive Multimedia
al::NavInputControl Class Reference

#include <C:/Users/Andres/source/repos/casm_viewer/external/tinc/external/allolib/include/al/io/al_ControlNav.hpp>

Inheritance diagram for al::NavInputControl:
al::WindowEventHandler

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)
 
Navnav ()
 
const Navnav () const
 
void active (bool b)
 
bool active ()
 
void enable ()
 
void disable ()
 
void toggleActive ()
 
double vscale () const
 
NavInputControlvscale (double v)
 
double tscale () const
 
NavInputControltscale (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.
 
WindowEventHandlerwindowEventHandler ()
 Return self.
 
bool attached () const
 
Windowwindow ()
 
const Windowwindow () const
 

Public Attributes

WindowmWindow
 

Protected Attributes

NavmNav = nullptr
 
double mVScale
 
double mTScale
 
bool mUseMouse
 
bool mActive = true
 

Detailed Description

Mapping from keyboard and mouse controls to a Nav object

Definition at line 238 of file al_ControlNav.hpp.


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