Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

Keyboard Class Reference

#include <Keyboard.h>

List of all members.


Detailed Description

This class provides methods to read from the robot keyboard.
Author:
Jia L. Du


Public Member Functions

 Keyboard ()
void waitFor (int key)
int getKey ()
int readKey ()

Static Public Attributes

const int KEY_1 = KEY1
const int KEY_2 = KEY2
const int KEY_3 = KEY3
const int KEY_4 = KEY4


Constructor & Destructor Documentation

Keyboard::Keyboard  
 


Member Function Documentation

int Keyboard::getKey  
 

Waits for a keypress and returns keycode

Returns:
Keyboard.KEY1 or Keyboard.KEY2 or Keyboard.KEY3 or Keyboard.KEY4

int Keyboard::readKey  
 

Reads keycode and returns it. Does NOT wait

Returns:
Keyboard.KEY1 or Keyboard.KEY2 or Keyboard.KEY3 or Keyboard.KEY4 or 0 if no key was pressed

void Keyboard::waitFor int    key
 

Waits for the given key

Parameters:
key Keyboard.KEY1 or Keyboard.KEY2 or Keyboard.KEY3 or Keyboard.KEY4


Member Data Documentation

const int Keyboard::KEY_1 = KEY1 [static]
 

Value to identify key 1 of the keyboard

const int Keyboard::KEY_2 = KEY2 [static]
 

Value to identify key 2 of the keyboard

const int Keyboard::KEY_3 = KEY3 [static]
 

Value to identify key 3 of the keyboard

const int Keyboard::KEY_4 = KEY4 [static]
 

Value to identify key 4 of the keyboard


Generated on Mon Aug 26 18:34:09 2002 for Cube Clustering by doxygen1.3-rc3