Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Examples  

gadget Namespace Reference


Compounds

class  gadget::EventWindowDepCheckerXWin
 Dependency checker for X Window System event source. More...

class  gadget::EventWindowOSX
 OSX event window class. More...

class  gadget::EventWindowWin32
class  gadget::EventWindowXWin
 X Winndow System event window class. More...

class  gadget::SimAnalog
 Simulated analog device Simulates an analog device from a keyboard device. More...

class  gadget::SimDigital
 Simulated digital device. More...

class  gadget::SimDigitalGlove
 Simulated digital device Simulates a digital device from a keyboard device. More...

class  gadget::SimGloveGesture
 Simulated glove class. More...

class  gadget::SimInput
 Base class for all simulated input devices. More...

class  gadget::SimInput::KeyModPair
class  gadget::SimPosition
 Simulated positional device. More...

class  gadget::SimRelativePosition
 Simulated a position device by making. More...

class  gadget::SimSetablePosition
 Simulated positional device whose data is set by the user (in postFrame). More...

class  gadget::PositionFilter
 PositionFilter is the abstract base class that all position filters derive from. More...

class  gadget::PositionFilterFactory
class  gadget::PositionXformFilter
 PositionFilter is the abstract base class that all position filters derive from. More...

class  gadget::InputLogger
 Input data logger. More...

struct  gadget::Callable
 This struct implements a callable object (a functor, basically). More...

class  gadget::InputManager
 The Input Manager holds an manages all Gadgeteer Input devices. More...

class  gadget::ProxyDepChecker
 Dependency checker for Proxies. More...

class  gadget::ProxyConstructorBase
 Base class for virtual construction of proxies. More...

class  gadget::ProxyConstructor
class  gadget::ProxyFactory
 Object used for creating proxies. More...

class  gadget::Analog
 Analog is the abstract base class that devices with Analog data derive from. More...

class  gadget::AnalogData
 InputData subclass for analog data. More...

class  gadget::AnalogProxy
 A proxy class to analog devices, used by the Input Manager. More...

class  gadget::BaseTypeConstructorBase
 Base class for virtual construction of devices. More...

class  gadget::BaseTypeFactory
 Object used for creating devices. More...

class  gadget::BaseTypeConstructor
class  gadget::DeviceConstructor
class  gadget::DeviceConstructorBase
 Base class for virtual construction of devices. More...

class  gadget::DeviceFactory
 Object used for creating devices. More...

class  gadget::BaseDeviceInterface
 Base class for simplified proxy interfaces. More...

class  gadget::DeviceInterface
class  gadget::Digital
 Digital is the abstract base class that devices with digital data derive from. More...

class  gadget::DigitalData
 InputData subclass for digital data. More...

class  gadget::DigitalProxy
 A proxy class to digital devices, used by the Input Manager. More...

class  gadget::Event
 Base event type that an event source may generate. More...

class  gadget::EventFactory
class  gadget::KeyEvent
 Key press or release event class. More...

class  gadget::MouseEvent
 Mouse event class. More...

class  gadget::EventWindow
 gadget::EventWindow is an abstract class for interfacing with keyboard (and other key-based) devices. More...

class  gadget::EventWindowProxy
 Proxy class to event window-based devices. More...

class  gadget::Gesture
 Base Gadgeteer Gesture interface class. More...

class  gadget::GestureProxy
 Proxy to Gesture object. More...

class  gadget::Glove
 This is the abstract base glove class. More...

class  gadget::GloveData
 This is the data stored about a glove. More...

class  gadget::GloveGesture
 Abstract base class for all glove gesture recognition. More...

class  gadget::GloveProxy
 Glove proxy class. More...

class  gadget::Input
 Input is the abstract base class that all input objects derive from. More...

class  gadget::InputData
 Base class for all input data returned by Gadgeteer. More...

class  gadget::InputPlaceHolder
 Placeholder class. More...

class  gadget::InputMixer
 Class for mixin in base classes of input devices. More...

class  gadget::LinearSigmoidPositionFilter
 A pos filter class that uses a linear sigmoid. More...

class  gadget::Position
 Position is the abstract base class that devices with digital data derive from. More...

class  gadget::PositionData
 InputData subclass for positional data. More...

class  gadget::PositionProxy
 A proxy class to positional devices, used by the InputManager. More...

class  gadget::Proxy
 Base class for all input proxies. More...

class  gadget::TypedProxy
class  gadget::SampleBuffer
 Buffer class for input data. More...

class  gadget::Speech
class  gadget::Speech::asdfjlk
class  gadget::SerializableDevice

Typedefs

typedef boost::shared_ptr<
InputLogger
InputLoggerPtr
typedef DeviceInterface< AnalogProxyAnalogInterface
typedef DeviceInterface< DigitalProxyDigitalInterface
typedef DeviceInterface< GestureProxyGestureInterface
typedef DeviceInterface< GloveProxyGloveInterface
typedef DeviceInterface< EventWindowProxyEventWindowInterface
typedef DeviceInterface< PositionProxyPositionInterface
typedef boost::shared_ptr<
Event
EventPtr
typedef boost::shared_ptr<
KeyEvent
KeyEventPtr
typedef boost::shared_ptr<
MouseEvent
MouseEventPtr

Enumerations

enum  OSXKeyMap {
  OSXK_a = 0, OSXK_b = 11, OSXK_c = 8, OSXK_d = 2,
  OSXK_e = 14, OSXK_f = 3, OSXK_g = 5, OSXK_h = 4,
  OSXK_i = 34, OSXK_j = 38, OSXK_k = 40, OSXK_l = 37,
  OSXK_m = 46, OSXK_n = 45, OSXK_o = 31, OSXK_p = 35,
  OSXK_q = 12, OSXK_r = 15, OSXK_s = 1, OSXK_t = 17,
  OSXK_u = 32, OSXK_v = 9, OSXK_w = 13, OSXK_x = 7,
  OSXK_y = 16, OSXK_z = 6, OSXK_1 = 18, OSXK_2 = 19,
  OSXK_3 = 20, OSXK_4 = 21, OSXK_5 = 23, OSXK_6 = 22,
  OSXK_7 = 26, OSXK_8 = 28, OSXK_9 = 25, OSXK_0 = 29,
  OSXK_KP_1 = 83, OSXK_KP_2 = 84, OSXK_KP_3 = 85, OSXK_KP_4 = 86,
  OSXK_KP_5 = 87, OSXK_KP_6 = 88, OSXK_KP_7 = 89, OSXK_KP_8 = 91,
  OSXK_KP_9 = 92, OSXK_KP_0 = 82, OSXK_Return = 36, OSXK_Enter = 76,
  OSXK_NumLock = 71, OSXK_Help = 114, OSXK_Del = 117, OSXK_Home = 115,
  OSXK_End = 119, OSXK_Page_Up = 116, OSXK_Page_Down = 121, OSXK_Ecs = 53,
  OSXK_Up = 126, OSXK_Down = 125, OSXK_Left = 123, OSXK_Right = 124
}
enum  EventType {
  NoEvent = 0, KeyPressEvent = 1, KeyReleaseEvent = 2, MouseButtonPressEvent = 3,
  MouseButtonReleaseEvent = 4, MouseMoveEvent = 5
}
 Possible event types. More...

enum  Keys {
  KEY_NONE, KEY_UP, KEY_DOWN, KEY_LEFT,
  KEY_RIGHT, KEY_SHIFT, KEY_CTRL, KEY_ALT,
  KEY_1, KEY_2, KEY_3, KEY_4,
  KEY_5, KEY_6, KEY_7, KEY_8,
  KEY_9, KEY_0, KEY_A, KEY_B,
  KEY_C, KEY_D, KEY_E, KEY_F,
  KEY_G, KEY_H, KEY_I, KEY_J,
  KEY_K, KEY_L, KEY_M, KEY_N,
  KEY_O, KEY_P, KEY_Q, KEY_R,
  KEY_S, KEY_T, KEY_U, KEY_V,
  KEY_W, KEY_X, KEY_Y, KEY_Z,
  KEY_ESC, MOUSE_POSX, MOUSE_NEGX, MOUSE_POSY,
  MOUSE_NEGY, MBUTTON1, MBUTTON2, MBUTTON3,
  MBUTTON4, MBUTTON5, NO_MBUTTON, KEY_TAB,
  KEY_BACKTAB, KEY_BACKSPACE, KEY_RETURN, KEY_ENTER,
  KEY_INSERT, KEY_DELETE, KEY_PAUSE, KEY_PRINT,
  KEY_SYSREQ, KEY_HOME, KEY_END, KEY_PRIOR,
  KEY_NEXT, KEY_CAPS_LOCK, KEY_NUM_LOCK, KEY_SCROLL_LOCK,
  KEY_F1, KEY_F2, KEY_F3, KEY_F4,
  KEY_F5, KEY_F6, KEY_F7, KEY_F8,
  KEY_F9, KEY_F10, KEY_F11, KEY_F12,
  KEY_F13, KEY_F14, KEY_F15, KEY_F16,
  KEY_F17, KEY_F18, KEY_F19, KEY_F20,
  KEY_F21, KEY_F22, KEY_F23, KEY_F24,
  KEY_F25, KEY_F26, KEY_F27, KEY_F28,
  KEY_F29, KEY_F30, KEY_F31, KEY_F32,
  KEY_F33, KEY_F34, KEY_F35, KEY_SUPER_L,
  KEY_SUPER_R, KEY_MENU, KEY_HYPER_L, KEY_HYPER_R,
  KEY_HELP, KEY_SPACE, KEY_ANY, KEY_EXCLAM,
  KEY_QUOTE_DBL, KEY_NUMBER_SIGN, KEY_DOLLAR, KEY_PERCENT,
  KEY_AMPERSAND, KEY_APOSTROPHE, KEY_PAREN_LEFT, KEY_PAREN_RIGHT,
  KEY_ASTERISK, KEY_PLUS, KEY_COMMA, KEY_MINUS,
  KEY_PERIOD, KEY_SLASH, KEY_COLON, KEY_SEMICOLON,
  KEY_LESS, KEY_EQUAL, KEY_GREATER, KEY_QUESTION,
  KEY_AT, KEY_BRACKET_LEFT, KEY_BACKSLASH, KEY_BRACKET_RIGHT,
  KEY_ASCII_CIRCUM, KEY_UNDERSCORE, KEY_QUOTE_LEFT, KEY_BRACE_LEFT,
  KEY_BAR, KEY_BRACE_RIGHT, KEY_ASCII_TILDE, KEY_UNKNOWN,
  LAST_KEY
}
 Names of defined keys. This list is based on Qt's list of recognized keys. More...

enum  ModiferMask { SHIFT_MASK = (1 << 0), ALT_MASK = (1 << 1), CTRL_MASK = (1 << 2) }
 Mask values for keyboard modifier keys. More...

enum  ButtonMask {
  BUTTON1_MASK = (1 << 3), BUTTON2_MASK = (1 << 4), BUTTON3_MASK = (1 << 5), BUTTON4_MASK = (1 << 6),
  BUTTON5_MASK = (1 << 7)
}
 Mask values for up to five mouse buttons. More...


Functions

pascal OSStatus keyboardHandlerOSX (EventHandlerCallRef nextHandler, EventRef theEvent, void *userData)
 Call back function to register with the carbon event loop. More...

LONG APIENTRY MenuWndProc (HWND hWnd, UINT message, UINT wParam, LONG lParam)
 GADGET_REGISTER_POSFILTER_CREATOR (PositionXformFilter)
 Register this filter. More...

 vprSingletonImp (InputManager)
bool recognizeProxyAlias (jccl::ConfigElementPtr element)
 Is it a proxy alias. More...

 GADGET_IMPLEMENT (std::ostream &) operator<<(std
 Dump the current Status of the InputManager, listing all the devices, proxies and internal settings. More...

 vprSingletonImpWithInitFunc (ProxyFactory, loadKnownProxies)
 vprSingletonImpWithInitFunc (BaseTypeFactory, hackLoadKnownDevices)
 vprSingletonImpWithInitFunc (DeviceFactory, loadKnownDevices)
 GADGET_REGISTER_EVENT_CREATOR (KeyEvent, KeyPressEvent)
 GADGET_REGISTER_EVENT_CREATOR (MouseEvent, MouseButtonPressEvent)
 GADGET_IMPLEMENT (std::string) getVersionString()
 GADGET_IMPLEMENT (vpr::Uint32) getVersionNumber()
 GADGET_API (std::string) getVersionString()
 GADGET_API (vpr::Uint32) getVersionNumber()

Variables

const unsigned short MSG_DATA_ANALOG = 421
const unsigned short MSG_DATA_DIGITAL = 420
const unsigned short MSG_DATA_EVENT_WINDOW = 420
const unsigned short MSG_DATA_GLOVE = 520
const unsigned short MSG_DATA_POS = 422


Typedef Documentation

typedef boost::shared_ptr<InputLogger> gadget::InputLoggerPtr
 

Definition at line 41 of file InputLoggerPtr.h.

typedef DeviceInterface<AnalogProxy> gadget::AnalogInterface
 

Definition at line 204 of file DeviceInterface.h.

typedef DeviceInterface<DigitalProxy> gadget::DigitalInterface
 

Definition at line 205 of file DeviceInterface.h.

typedef DeviceInterface<GestureProxy> gadget::GestureInterface
 

Definition at line 206 of file DeviceInterface.h.

typedef DeviceInterface<GloveProxy> gadget::GloveInterface
 

Definition at line 207 of file DeviceInterface.h.

typedef DeviceInterface<EventWindowProxy> gadget::EventWindowInterface
 

Definition at line 208 of file DeviceInterface.h.

typedef DeviceInterface<PositionProxy> gadget::PositionInterface
 

Definition at line 209 of file DeviceInterface.h.

typedef boost::shared_ptr<Event> gadget::EventPtr
 

Definition at line 42 of file EventPtr.h.

Referenced by gadget::EventWindow::readObject.

typedef boost::shared_ptr<KeyEvent> gadget::KeyEventPtr
 

Definition at line 42 of file KeyEventPtr.h.

typedef boost::shared_ptr<MouseEvent> gadget::MouseEventPtr
 

Definition at line 42 of file MouseEventPtr.h.


Enumeration Type Documentation

enum gadget::OSXKeyMap
 

Enumeration values:
OSXK_a 
OSXK_b 
OSXK_c 
OSXK_d 
OSXK_e 
OSXK_f 
OSXK_g 
OSXK_h 
OSXK_i 
OSXK_j 
OSXK_k 
OSXK_l 
OSXK_m 
OSXK_n 
OSXK_o 
OSXK_p 
OSXK_q 
OSXK_r 
OSXK_s 
OSXK_t 
OSXK_u 
OSXK_v 
OSXK_w 
OSXK_x 
OSXK_y 
OSXK_z 
OSXK_1 
OSXK_2 
OSXK_3 
OSXK_4 
OSXK_5 
OSXK_6 
OSXK_7 
OSXK_8 
OSXK_9 
OSXK_0 
OSXK_KP_1 
OSXK_KP_2 
OSXK_KP_3 
OSXK_KP_4 
OSXK_KP_5 
OSXK_KP_6 
OSXK_KP_7 
OSXK_KP_8 
OSXK_KP_9 
OSXK_KP_0 
OSXK_Return 
OSXK_Enter 
OSXK_NumLock 
OSXK_Help 
OSXK_Del 
OSXK_Home 
OSXK_End 
OSXK_Page_Up 
OSXK_Page_Down 
OSXK_Ecs 
OSXK_Up 
OSXK_Down 
OSXK_Left 
OSXK_Right 

Definition at line 261 of file EventWindowOSX.h.

00262 {
00263    OSXK_a = 0,
00264    OSXK_b = 11,
00265    OSXK_c = 8,
00266    OSXK_d = 2,
00267    OSXK_e = 14,
00268    OSXK_f = 3,
00269    OSXK_g = 5,
00270    OSXK_h = 4,
00271    OSXK_i = 34,
00272    OSXK_j = 38,
00273    OSXK_k = 40,
00274    OSXK_l = 37,
00275    OSXK_m = 46,
00276    OSXK_n = 45,
00277    OSXK_o = 31,
00278    OSXK_p = 35,
00279    OSXK_q = 12,
00280    OSXK_r = 15,
00281    OSXK_s = 1,
00282    OSXK_t = 17,
00283    OSXK_u = 32,
00284    OSXK_v = 9,
00285    OSXK_w = 13,
00286    OSXK_x = 7,
00287    OSXK_y = 16,
00288    OSXK_z = 6,
00289 
00290    OSXK_1 = 18,
00291    OSXK_2 = 19,
00292    OSXK_3 = 20,
00293    OSXK_4 = 21,
00294    OSXK_5 = 23,
00295    OSXK_6 = 22,
00296    OSXK_7 = 26,
00297    OSXK_8 = 28,
00298    OSXK_9 = 25,
00299    OSXK_0 = 29,
00300 
00301    OSXK_KP_1 = 83,
00302    OSXK_KP_2 = 84,
00303    OSXK_KP_3 = 85,
00304    OSXK_KP_4 = 86,
00305    OSXK_KP_5 = 87,
00306    OSXK_KP_6 = 88,
00307    OSXK_KP_7 = 89,
00308    OSXK_KP_8 = 91,
00309    OSXK_KP_9 = 92,
00310    OSXK_KP_0 = 82,
00311 
00312    OSXK_Return = 36,
00313    OSXK_Enter = 76,
00314    OSXK_NumLock = 71,
00315    OSXK_Help = 114,
00316    OSXK_Del = 117,
00317    OSXK_Home = 115,
00318    OSXK_End = 119,
00319    OSXK_Page_Up = 116,
00320    OSXK_Page_Down = 121,
00321    OSXK_Ecs = 53,
00322 
00323    OSXK_Up = 126,
00324    OSXK_Down = 125,
00325    OSXK_Left = 123,
00326    OSXK_Right = 124
00327 
00328 
00329 };

enum gadget::EventType
 

Possible event types.

Enumeration values:
NoEvent  No event.
KeyPressEvent  Key press event.
KeyReleaseEvent  Key release event.
MouseButtonPressEvent  Mouse button press event.
MouseButtonReleaseEvent  Mouse button release event.
MouseMoveEvent  Mouse move event.

Definition at line 42 of file Event.h.

Referenced by gadget::Event::Event, gadget::EventWindow::readObject, gadget::Event::setType, and gadget::Event::type.

00043 {
00044    NoEvent                 = 0,  
00045    KeyPressEvent           = 1,  
00046    KeyReleaseEvent         = 2,  
00047    MouseButtonPressEvent   = 3,  
00048    MouseButtonReleaseEvent = 4,  
00049    MouseMoveEvent          = 5   
00050 };

enum gadget::Keys
 

Names of defined keys. This list is based on Qt's list of recognized keys.

Enumeration values:
KEY_NONE 
KEY_UP 
KEY_DOWN 
KEY_LEFT 
KEY_RIGHT 
KEY_SHIFT 
KEY_CTRL 
KEY_ALT 
KEY_1 
KEY_2 
KEY_3 
KEY_4 
KEY_5 
KEY_6 
KEY_7 
KEY_8 
KEY_9 
KEY_0 
KEY_A 
KEY_B 
KEY_C 
KEY_D 
KEY_E 
KEY_F 
KEY_G 
KEY_H 
KEY_I 
KEY_J 
KEY_K 
KEY_L 
KEY_M 
KEY_N 
KEY_O 
KEY_P 
KEY_Q 
KEY_R 
KEY_S 
KEY_T 
KEY_U 
KEY_V 
KEY_W 
KEY_X 
KEY_Y 
KEY_Z 
KEY_ESC 
MOUSE_POSX 
MOUSE_NEGX 
MOUSE_POSY 
MOUSE_NEGY 
MBUTTON1  Mouse button 1.
MBUTTON2  Mouse button 2.
MBUTTON3  Mouse button 3.
MBUTTON4  Mouse button 4.
MBUTTON5  Mouse button 5.
NO_MBUTTON  No mouse button.
KEY_TAB 
KEY_BACKTAB 
KEY_BACKSPACE 
KEY_RETURN 
KEY_ENTER 
KEY_INSERT 
KEY_DELETE 
KEY_PAUSE 
KEY_PRINT 
KEY_SYSREQ 
KEY_HOME 
KEY_END 
KEY_PRIOR  Page up.
KEY_NEXT  Page down.
KEY_CAPS_LOCK 
KEY_NUM_LOCK 
KEY_SCROLL_LOCK 
KEY_F1 
KEY_F2 
KEY_F3 
KEY_F4 
KEY_F5 
KEY_F6 
KEY_F7 
KEY_F8 
KEY_F9 
KEY_F10 
KEY_F11 
KEY_F12 
KEY_F13 
KEY_F14 
KEY_F15 
KEY_F16 
KEY_F17 
KEY_F18 
KEY_F19 
KEY_F20 
KEY_F21 
KEY_F22 
KEY_F23 
KEY_F24 
KEY_F25 
KEY_F26 
KEY_F27 
KEY_F28 
KEY_F29 
KEY_F30 
KEY_F31 
KEY_F32 
KEY_F33 
KEY_F34 
KEY_F35 
KEY_SUPER_L 
KEY_SUPER_R 
KEY_MENU 
KEY_HYPER_L 
KEY_HYPER_R 
KEY_HELP 
KEY_SPACE 
KEY_ANY 
KEY_EXCLAM  !
KEY_QUOTE_DBL  ".
KEY_NUMBER_SIGN  #.
KEY_DOLLAR  $.
KEY_PERCENT  %.
KEY_AMPERSAND  &.
KEY_APOSTROPHE  '.
KEY_PAREN_LEFT  (.
KEY_PAREN_RIGHT  ).
KEY_ASTERISK  *.
KEY_PLUS  +.
KEY_COMMA  ,.
KEY_MINUS  -.
KEY_PERIOD 
KEY_SLASH  /.
KEY_COLON  :.
KEY_SEMICOLON  ;.
KEY_LESS  <.
KEY_EQUAL  =.
KEY_GREATER  >.
KEY_QUESTION  ?
KEY_AT  @.
KEY_BRACKET_LEFT  [.
KEY_BACKSLASH  \.
KEY_BRACKET_RIGHT  ].
KEY_ASCII_CIRCUM 
KEY_UNDERSCORE  _.
KEY_QUOTE_LEFT 
KEY_BRACE_LEFT  {.
KEY_BAR  |.
KEY_BRACE_RIGHT  }.
KEY_ASCII_TILDE  ~.
KEY_UNKNOWN 
LAST_KEY  Maximum value to provide enumeration size.

Definition at line 40 of file Keys.h.

00041 {
00042    KEY_NONE,
00043    KEY_UP,
00044    KEY_DOWN,
00045    KEY_LEFT,
00046    KEY_RIGHT,
00047    KEY_SHIFT,
00048    KEY_CTRL,
00049    KEY_ALT,
00050    KEY_1,
00051    KEY_2,
00052    KEY_3,
00053    KEY_4,
00054    KEY_5,
00055    KEY_6,
00056    KEY_7,
00057    KEY_8,
00058    KEY_9,
00059    KEY_0,
00060    KEY_A,
00061    KEY_B,
00062    KEY_C,
00063    KEY_D,
00064    KEY_E,
00065    KEY_F,
00066    KEY_G,
00067    KEY_H,
00068    KEY_I,
00069    KEY_J,
00070    KEY_K,
00071    KEY_L,
00072    KEY_M,
00073    KEY_N,
00074    KEY_O,
00075    KEY_P,
00076    KEY_Q,
00077    KEY_R,
00078    KEY_S,
00079    KEY_T,
00080    KEY_U,
00081    KEY_V,
00082    KEY_W,
00083    KEY_X,
00084    KEY_Y,
00085    KEY_Z,
00086    KEY_ESC,
00087 
00088    // XXX: Mouse information probably shouldn't be here in the long term.
00089    MOUSE_POSX,
00090    MOUSE_NEGX,
00091    MOUSE_POSY,
00092    MOUSE_NEGY,
00093    MBUTTON1,   
00094    MBUTTON2,   
00095    MBUTTON3,   
00096    MBUTTON4,   
00097    MBUTTON5,   
00098    NO_MBUTTON, 
00100    KEY_TAB,
00101    KEY_BACKTAB,
00102    KEY_BACKSPACE,
00103    KEY_RETURN,
00104    KEY_ENTER,
00105    KEY_INSERT,
00106    KEY_DELETE,
00107    KEY_PAUSE,
00108    KEY_PRINT,
00109    KEY_SYSREQ,
00110    KEY_HOME,
00111    KEY_END,
00112    KEY_PRIOR,           
00113    KEY_NEXT,            
00114    KEY_CAPS_LOCK,
00115    KEY_NUM_LOCK,
00116    KEY_SCROLL_LOCK,
00117    KEY_F1,
00118    KEY_F2,
00119    KEY_F3,
00120    KEY_F4,
00121    KEY_F5,
00122    KEY_F6,
00123    KEY_F7,
00124    KEY_F8,
00125    KEY_F9,
00126    KEY_F10,
00127    KEY_F11,
00128    KEY_F12,
00129    KEY_F13,
00130    KEY_F14,
00131    KEY_F15,
00132    KEY_F16,
00133    KEY_F17,
00134    KEY_F18,
00135    KEY_F19,
00136    KEY_F20,
00137    KEY_F21,
00138    KEY_F22,
00139    KEY_F23,
00140    KEY_F24,
00141    KEY_F25,
00142    KEY_F26,
00143    KEY_F27,
00144    KEY_F28,
00145    KEY_F29,
00146    KEY_F30,
00147    KEY_F31,
00148    KEY_F32,
00149    KEY_F33,
00150    KEY_F34,
00151    KEY_F35,
00152    KEY_SUPER_L,
00153    KEY_SUPER_R,
00154    KEY_MENU,
00155    KEY_HYPER_L,
00156    KEY_HYPER_R,
00157    KEY_HELP,
00158    KEY_SPACE,
00159    KEY_ANY,
00160    KEY_EXCLAM,          
00161    KEY_QUOTE_DBL,       
00162    KEY_NUMBER_SIGN,     
00163    KEY_DOLLAR,          
00164    KEY_PERCENT,         
00165    KEY_AMPERSAND,       
00166    KEY_APOSTROPHE,      
00167    KEY_PAREN_LEFT,      
00168    KEY_PAREN_RIGHT,     
00169    KEY_ASTERISK,        
00170    KEY_PLUS,            
00171    KEY_COMMA,           
00172    KEY_MINUS,           
00173    KEY_PERIOD,          
00174    KEY_SLASH,           
00175    KEY_COLON,           
00176    KEY_SEMICOLON,       
00177    KEY_LESS,            
00178    KEY_EQUAL,           
00179    KEY_GREATER,         
00180    KEY_QUESTION,        
00181    KEY_AT,              
00182    KEY_BRACKET_LEFT,    
00183    KEY_BACKSLASH,       
00184    KEY_BRACKET_RIGHT,   
00185    KEY_ASCII_CIRCUM,
00186    KEY_UNDERSCORE,      
00187    KEY_QUOTE_LEFT,
00188    KEY_BRACE_LEFT,      
00189    KEY_BAR,             
00190    KEY_BRACE_RIGHT,     
00191    KEY_ASCII_TILDE,     
00193 /*
00194    KEY_EXCLAM_DOWN,
00195    KEY_CENT,
00196    KEY_STERLING,
00197    KEY_CURRENCY,
00198    KEY_YEN,
00199 
00200    KEY_brokenbar ,
00201    KEY_section ,
00202    KEY_diaeresis ,
00203    KEY_copyright ,
00204    KEY_ordfeminine ,
00205    KEY_guillemotleft ,
00206    KEY_notsign ,
00207    KEY_hyphen ,
00208    KEY_registered ,
00209    KEY_macron ,
00210    KEY_degree ,
00211    KEY_plusminus ,
00212    KEY_twosuperior ,
00213    KEY_threesuperior ,
00214    KEY_acute ,
00215    KEY_mu ,
00216    KEY_paragraph ,
00217    KEY_periodcentered ,
00218    KEY_cedilla ,
00219    KEY_onesuperior ,
00220    KEY_masculine ,
00221    KEY_guillemotright ,
00222    KEY_onequarter ,
00223    KEY_onehalf ,
00224    KEY_threequarters ,
00225    KEY_questiondown ,
00226    KEY_Agrave ,
00227    KEY_Aacute ,
00228    KEY_Acircumflex ,
00229    KEY_Atilde ,
00230    KEY_Adiaeresis ,
00231    KEY_Aring ,
00232    KEY_AE ,
00233    KEY_Ccedilla ,
00234    KEY_Egrave ,
00235    KEY_Eacute ,
00236    KEY_Ecircumflex ,
00237    KEY_Ediaeresis ,
00238    KEY_Igrave ,
00239    KEY_Iacute ,
00240    KEY_Icircumflex ,
00241    KEY_Idiaeresis ,
00242    KEY_ETH ,
00243    KEY_Ntilde ,
00244    KEY_Ograve ,
00245    KEY_Oacute ,
00246    KEY_Ocircumflex ,
00247    KEY_Otilde ,
00248    KEY_Odiaeresis ,
00249    KEY_multiply ,
00250    KEY_Ooblique ,
00251    KEY_Ugrave ,
00252    KEY_Uacute ,
00253    KEY_Ucircumflex ,
00254    KEY_Udiaeresis ,
00255    KEY_Yacute ,
00256    KEY_THORN ,
00257    KEY_ssharp ,
00258    KEY_agrave ,
00259    KEY_aacute ,
00260    KEY_acircumflex ,
00261    KEY_atilde ,
00262    KEY_adiaeresis ,
00263    KEY_aring ,
00264    KEY_ae ,
00265    KEY_ccedilla ,
00266    KEY_egrave ,
00267    KEY_eacute ,
00268    KEY_ecircumflex ,
00269    KEY_ediaeresis ,
00270    KEY_igrave ,
00271    KEY_iacute ,
00272    KEY_icircumflex ,
00273    KEY_idiaeresis ,
00274    KEY_eth ,
00275    KEY_ntilde ,
00276    KEY_ograve ,
00277    KEY_oacute ,
00278    KEY_ocircumflex ,
00279    KEY_otilde ,
00280    KEY_odiaeresis ,
00281    KEY_division ,
00282    KEY_oslash ,
00283    KEY_ugrave ,
00284    KEY_uacute ,
00285    KEY_ucircumflex ,
00286    KEY_udiaeresis ,
00287    KEY_yacute ,
00288    KEY_thorn ,
00289    KEY_ydiaeresis ,
00290 */
00291    KEY_UNKNOWN,
00292 
00293    LAST_KEY    
00294 };

enum gadget::ModiferMask
 

Mask values for keyboard modifier keys.

Enumeration values:
SHIFT_MASK  Shift key mask.
ALT_MASK  Control (CTRL) key mask.
CTRL_MASK  Alt key mask.

Definition at line 297 of file Keys.h.

00298 {
00299    SHIFT_MASK = (1 << 0),  
00300    ALT_MASK   = (1 << 1),  
00301    CTRL_MASK  = (1 << 2)   
00302 };

enum gadget::ButtonMask
 

Mask values for up to five mouse buttons.

Enumeration values:
BUTTON1_MASK  Value for mouse button 1.
BUTTON2_MASK  Value for mouse button 2.
BUTTON3_MASK  Value for mouse button 3.
BUTTON4_MASK  Value for mouse button 4.
BUTTON5_MASK  Value for mouse button 5.

Definition at line 305 of file Keys.h.

00306 {
00307    BUTTON1_MASK = (1 << 3),  
00308    BUTTON2_MASK = (1 << 4),  
00309    BUTTON3_MASK = (1 << 5),  
00310    BUTTON4_MASK = (1 << 6),  
00311    BUTTON5_MASK = (1 << 7)   
00312 };


Function Documentation

pascal OSStatus gadget::keyboardHandlerOSX EventHandlerCallRef    nextHandler,
EventRef    theEvent,
void *    userData
[static]
 

Call back function to register with the carbon event loop.

The userData argument contains a reference to the instance of the EventWindowOSX class that registered to receive the event for its window.

Definition at line 862 of file EventWindowOSX.cpp.

Referenced by gadget::EventWindowOSX::attachEvents.

00864 {
00865    EventWindowOSX* the_window_class = (EventWindowOSX *) userData;
00866    pascal OSStatus stat;
00867    stat = the_window_class->gotKeyEvent(nextHandler, theEvent, userData);
00868 
00869    return stat;                                // Report success
00870 }

LONG APIENTRY MenuWndProc HWND    hWnd,
UINT    message,
UINT    wParam,
LONG    lParam
 

Definition at line 699 of file EventWindowWin32.cpp.

00700 {
00701    switch ( message )
00702    {
00703       case WM_SYSCOMMAND:
00704          return DefWindowProc(hWnd, message, wParam, lParam);
00705 
00706 //      case WM_COMMAND:
00707 //         break;
00708 
00709       case WM_SIZE:
00710          if ( lParam )
00711          {
00712             InvalidateRect(hWnd, NULL, TRUE);
00713          }
00714          break;
00715 
00716       case WM_DESTROY:
00717          PostQuitMessage(0);
00718          break;
00719 
00720       default:
00721          return DefWindowProc(hWnd, message, wParam, lParam);
00722    }
00723    return 0;
00724 }

GADGET_REGISTER_POSFILTER_CREATOR PositionXformFilter   
 

Register this filter.

vprSingletonImp InputManager   
 

bool gadget::recognizeProxyAlias jccl::ConfigElementPtr    element [static]
 

Is it a proxy alias.

Definition at line 775 of file InputManager.cpp.

00776 {
00777    return (element->getID() == "alias");
00778 }

GADGET_IMPLEMENT std::ostream &   
 

Dump the current Status of the InputManager, listing all the devices, proxies and internal settings.

Definition at line 574 of file InputManager.cpp.

00575 {
00576    out << "\n========== InputManager Status ==========" << std::endl;
00577    out << "Devices:\n";
00578 
00579    // Dump DEVICES
00580    for ( InputManager::tDevTableType::iterator i = iMgr.mDevTable.begin();
00581          i != iMgr.mDevTable.end();
00582          ++i)
00583    {
00584       if ((*i).second != NULL)
00585       {
00586          out << std::setw(2) << std::setfill(' ') << i->first << ":"
00587              << "  name:" << std::setw(30) << std::setfill(' ') << i->second->getInstanceName()
00588              << "  type:" << std::setw(12) << std::setfill(' ') << typeid(*(i->second)).name()
00589              << std::endl;
00590       }
00591    }
00592 
00593    out << "\nProxies:\n";
00594    for (std::map<std::string, Proxy*>::iterator i_p = iMgr.mProxyTable.begin();
00595         i_p != iMgr.mProxyTable.end();
00596         ++i_p)
00597    {
00598       out << (*i_p).second->getName() << "   Proxies:";
00599       if(NULL != ((*i_p).second->getProxiedInputDevice()))
00600       {
00601          out << ((*i_p).second->getProxiedInputDevice())->getInstanceName();
00602       }
00603       else
00604       {
00605          out << "None (internal dummy)";
00606       }
00607       out << std::endl;
00608    }
00609  
00610    out << std::endl;
00611 
00612    // Dump Alias list
00613    out << "Alias List:" << std::endl;
00614    for ( std::map<std::string, std::string>::iterator cur_alias = iMgr.mProxyAliases.begin();
00615          cur_alias != iMgr.mProxyAliases.end();
00616          ++cur_alias )
00617    {
00618       out << "    " << (*cur_alias).first.c_str() << "  proxy: "
00619           << (*cur_alias).second << std::endl;
00620    }
00621 
00622    out << "========== InputManager Status ==========" << std::endl;
00623    return out;
00624 }

vprSingletonImpWithInitFunc ProxyFactory   ,
loadKnownProxies   
 

vprSingletonImpWithInitFunc BaseTypeFactory   ,
hackLoadKnownDevices   
 

vprSingletonImpWithInitFunc DeviceFactory   ,
loadKnownDevices   
 

gadget::GADGET_REGISTER_EVENT_CREATOR KeyEvent   ,
KeyPressEvent   
 

gadget::GADGET_REGISTER_EVENT_CREATOR MouseEvent   ,
MouseButtonPressEvent   
 

GADGET_IMPLEMENT std::string   
 

Definition at line 42 of file Version.cpp.

00043 {
00044    return std::string(GADGET_VERSION);
00045 }

GADGET_IMPLEMENT vpr::Uint32   
 

Definition at line 47 of file Version.cpp.

00048 {
00049    return __GADGET_version;
00050 }

GADGET_API std::string   
 

GADGET_API vpr::Uint32   
 


Variable Documentation

const unsigned short gadget::MSG_DATA_ANALOG = 421
 

Definition at line 49 of file Analog.h.

Referenced by gadget::Analog::readObject, and gadget::Analog::writeObject.

const unsigned short gadget::MSG_DATA_DIGITAL = 420
 

Definition at line 50 of file Digital.h.

Referenced by ga