mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-23 07:16:15 +00:00
Fixed: #972 Do not reset mouse position to implement FreeLook (compilation fix for Windows)
This commit is contained in:
parent
05899b02c7
commit
72625ca28d
4 changed files with 15 additions and 0 deletions
|
@ -135,6 +135,7 @@ public:
|
||||||
|
|
||||||
/// from IEventEmitter
|
/// from IEventEmitter
|
||||||
virtual void submitEvents(CEventServer &server, bool allWindows);
|
virtual void submitEvents(CEventServer &server, bool allWindows);
|
||||||
|
virtual void emulateMouseRawMode(bool enable);
|
||||||
|
|
||||||
// Build a TMouseButton value from the current buttons state
|
// Build a TMouseButton value from the current buttons state
|
||||||
TMouseButton buildButtonsFlags() const;
|
TMouseButton buildButtonsFlags() const;
|
||||||
|
|
|
@ -47,6 +47,7 @@ public:
|
||||||
const IEventEmitter *getEmitter(uint index) const;
|
const IEventEmitter *getEmitter(uint index) const;
|
||||||
/// From IEventEmitter. This call submitEvents on all the emitters
|
/// From IEventEmitter. This call submitEvents on all the emitters
|
||||||
virtual void submitEvents(CEventServer &server, bool allWindows);
|
virtual void submitEvents(CEventServer &server, bool allWindows);
|
||||||
|
virtual void emulateMouseRawMode(bool enable);
|
||||||
private:
|
private:
|
||||||
typedef std::vector<std::pair<IEventEmitter *, bool> > TEmitterCont;
|
typedef std::vector<std::pair<IEventEmitter *, bool> > TEmitterCont;
|
||||||
TEmitterCont _Emitters;
|
TEmitterCont _Emitters;
|
||||||
|
|
|
@ -248,6 +248,12 @@ void CDIEventEmitter::submitEvents(CEventServer &server, bool allWindows)
|
||||||
_InternalServer.pump(allWindows);
|
_InternalServer.pump(allWindows);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//==========================================================================
|
||||||
|
void CDIEventEmitter::emulateMouseRawMode(bool enable)
|
||||||
|
{
|
||||||
|
nlerror("no raw mode emulation on windows, the CDIMouse has a real raw mode");
|
||||||
|
}
|
||||||
|
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
/// Tool fct to retrieve the game devices.
|
/// Tool fct to retrieve the game devices.
|
||||||
static BOOL CALLBACK DIEnumDevicesDescCallback
|
static BOOL CALLBACK DIEnumDevicesDescCallback
|
||||||
|
|
|
@ -79,6 +79,13 @@ void CEventEmitterMulti::submitEvents(CEventServer &server, bool allWindows)
|
||||||
it->first->submitEvents(server, allWindows);
|
it->first->submitEvents(server, allWindows);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
///============================================================
|
||||||
|
void CEventEmitterMulti::emulateMouseRawMode(bool enable)
|
||||||
|
{
|
||||||
|
nlerror("no raw mode emulation on windows, the CDIMouse has a real raw mode");
|
||||||
|
}
|
||||||
|
|
||||||
///============================================================
|
///============================================================
|
||||||
IEventEmitter *CEventEmitterMulti::getEmitter(uint index)
|
IEventEmitter *CEventEmitterMulti::getEmitter(uint index)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue