8#pragma comment (lib, "user32.lib")
23 fprintf(stderr,
"vrpn_Keyboard:: Not implement on this architecture\n");
47 BYTE virtual_keys[256];
48 if (GetKeyboardState(virtual_keys) == 0) {
49 fprintf(stderr,
"vrpn_Keyboard::get_report(): Could not read keyboard state\n");
58 for (i = 0; i < 256; i++) {
61 for (i = 0; i < 256; i++) {
62 unsigned scancode = MapVirtualKey(i, 0);
63 if ( (scancode != 0) && ((0x80 & virtual_keys[i]) != 0) ) {
void server_mainloop(void)
Handles functions that all servers should provide in their mainloop() (ping/pong, for example) Should...
Generic connection class not specific to the transport mechanism.
virtual void mainloop()
Called once through each main loop iteration to handle updates.
virtual int get_report(void)
Read the current status. Return 1 if a report was found,.
vrpn_Keyboard(const char *name, vrpn_Connection *c)
class VRPN_API vrpn_Connection
#define vrpn_gettimeofday