00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #pragma once
00020
00021 #include "CClientProxy1_3.h"
00022 #include "GameDeviceTypes.h"
00023
00024 class CServer;
00025
00027 class CClientProxy1_4 : public CClientProxy1_3 {
00028 public:
00029 CClientProxy1_4(const CString& name, synergy::IStream* adoptedStream, CServer* server, IEventQueue* eventQueue);
00030 ~CClientProxy1_4();
00031
00032
00033 virtual void gameDeviceButtons(GameDeviceID id, GameDeviceButton buttons);
00034 virtual void gameDeviceSticks(GameDeviceID id, SInt16 x1, SInt16 y1, SInt16 x2, SInt16 y2);
00035 virtual void gameDeviceTriggers(GameDeviceID id, UInt8 t1, UInt8 t2);
00036 virtual void gameDeviceTimingReq();
00037 virtual void keyDown(KeyID key, KeyModifierMask mask, KeyButton button);
00038 virtual void keyRepeat(KeyID key, KeyModifierMask mask, SInt32 count, KeyButton button);
00039 virtual void keyUp(KeyID key, KeyModifierMask mask, KeyButton button);
00040
00042 void cryptoIv();
00043
00044 protected:
00045
00046 virtual bool parseMessage(const UInt8* code);
00047
00048 private:
00049
00050 void gameDeviceTimingResp();
00051 void gameDeviceFeedback();
00052
00053 CServer* m_server;
00054 };