vrpn
07.33
Virtual Reality Peripheral Network
vrpn_Keyboard.h
Go to the documentation of this file.
1
#ifndef VRPN_KEYBOARD_H
2
#define VRPN_KEYBOARD_H
3
5
// vrpn_Keyboard is a VRPN server class to publish events from the PC's keyboard.
6
// It provides a 256-channel vrpn_Button for keyboard buttons, reporting the
7
// scan codes for the key.
8
//
9
// This implementation is Windows-specific, as it leverages the windows mouse calls.
10
//
11
12
#include "
vrpn_Button.h
"
// for vrpn_Button_Filter
13
#include "
vrpn_Configure.h
"
// for VRPN_API
14
15
class
VRPN_API
vrpn_Connection
;
16
17
class
VRPN_API
vrpn_Keyboard
:
public
vrpn_Button_Filter
18
{
19
public
:
20
vrpn_Keyboard
(
const
char
* name,
vrpn_Connection
* c);
21
~
vrpn_Keyboard
() ;
22
24
virtual
void
mainloop
();
25
26
protected
:
28
// 0 otherwise (this only makes sense for buffered implementations;
29
// return 0 if it is not a buffered implementation.
30
virtual
int
get_report(
void
);
31
};
32
33
#endif
vrpn_Configure.h
vrpn_Connection
Generic connection class not specific to the transport mechanism.
Definition:
vrpn_Connection.h:510
VRPN_API
#define VRPN_API
Definition:
vrpn_Configure.h:646
vrpn_BaseClass::mainloop
virtual void mainloop()=0
Called once through each main loop iteration to handle updates. Remote object mainloop() should call ...
vrpn_Button_Filter
All button servers should derive from this class, which provides the ability to turn any of the butto...
Definition:
vrpn_Button.h:65
vrpn_Button.h
vrpn_Keyboard
Definition:
vrpn_Keyboard.h:17
vrpn_Keyboard.h
Generated by
1.8.15