Software KeTop
T50VGA
86
User's Manual, Version: 1.3
© KEBA 2007
Connections
For details about the LED numbering (ledNr) needed for the following func-
tions, refer to the chapter
on page 48.
class CKVCConnection {
private:
char *pIpAdr;
public:
virtual int
Init
(CKVCServer *pServer, SOCKET socket,
SOCKADDR_IN &socketAdr);
virtual int
Exit
();
virtual int
OnOverrideChange
(SINT16 val);
virtual int
OnWheelChange
(SINT16 wheelAbsVal);
virtual int
OnKeypadEvent
(TKVCEvent keyEvent, UINT8 keyNum);
virtual int
OnJoystickEvent
(TKVCEvent event, TKVCJoystickData *pJData);
virtual int
OnSpaceMouseEvent
(TKVCEvent event,
TKVCSpaceMouseData *pSMData);
virtual int
OnDisconnect
();
virtual int
GetWheelVal
(TKVCHandWheelData &hwData);
virutal int
GetOverrideVal
(SINT8 &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);
sockaddr_in
GetSocketAdr
();
SOCKET
GetSocket
();
};
The methods OnOverrideChange, OnWheelChange, OnKeypadEvent,
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
OnKeypadEvent
(TKVCEvent keyEvent, int keyNum);