7.9.3.2
Connections
For details about the LED numbering (ledNr) needed for the following func-
tions, refer to
"Numbering of LEDs" on page 48
class CKVCConnection {
private:
char *pIpAdr;
public:
virtual int Init(CKVCServer *pServer, SOCKET socket,
SOCKADDR_IN &socketAdr,Tpriority threadPriority);
virtual int Exit();
virtual int OnOverrideChange(SINT16 val);
virtual int OnWheelChange(SINT16 wheelAbsVal);
virtual int OnKeyboardEvent(TKVCEvent keyEvent, int keyNum);
virtual int OnJoystickEvent(TKVCEvent event, TKVCJoystickData *pJData);
virtual int OnSpaceMouseEvent(TKVCEvent event,
TKVCSpaceMouseData *pSMData);
virtual int OnDisconnect(int val);
virtual int OnAlive(void);
virtual int GetWheelVal(TKVCHandWheelData &hwData);
virutal int GetOverrideVal(SINT16 &overrideVal);
virtual int GetJoystickPos(TKVCJoystickData &jData);
virtual int GetSpaceMousePos(TKVCSpaceMouseData &smData);
virtual int GetLedState(UINT8 ledNum,UINT8 &state);
virtual int GetContrast(UINT8 &contrast);
virtual int GetBrightness(UINT8 &brightness);
virtual int GetVolume(UINT8 &volume);
virutal int GetScreensaverTime(UINT16 &time);
virtual int GetScreensaverState(UINT8 &state);
virtual int SetWheelVal(SINT16 val);
virtual int SetLed(UINT8 ledNum, TKVCLedMode mode);
virtual int SetContrast(UINT8 contrast);
virtual int SetBrightness(UINT8 brightness);
virtual int SetVolume(UINT8 volume);
virtual int SetScreenSaver(UINT16 screenSaverTime);
virtual int SwitchBacklight(UINT8 backlightOnOff);
virtual int WriteToFlash();
virtual int PlaySound(UINT16 soundNr);
};
The methods
OnOverrideChange
,
OnWheelChange
,
OnKeyboardEvent
,
OnJoystickEvent
and
OnSpacemouseEvent
will be called if an event has
occurred at the corresponding operating element on the client.
●
int CKVCConnection::OnOverrideChange(SINT16 val);
This method will be called if the value of the override potentiometer has
changed on the client. The current value is specified in the parameter
val
.
●
int CKVCConnection::OnWheelChange(SINT16 wheelAbsVal);
The method
OnWheelChange
will be called if the value of the handwheel
has changed. The current value is transferred as an absolute value in the
parameter
wheelAbsVal
.
●
virtual int OnKeyboardEvent(TKVCEvent keyEvent, int
keyNum);
The method
OnKeypadEvent
will be called if a key has been pressed/
released. The key number is specified in
keyNum
, the state of the key
(make, break) in
keyEvent
.
Software
KeTop T50VGA
© KEBA 2009
User's Manual V1.50
82