mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-12-13 19:49:36 +00:00
EOL fix
This commit is contained in:
@@ -197,7 +197,7 @@ void GpInputDriverSDLGamepad::ProcessSDLEvent(const SDL_Event &msg)
|
|||||||
IGpVOSEventQueue *evtQueue = m_properties.m_eventQueue;
|
IGpVOSEventQueue *evtQueue = m_properties.m_eventQueue;
|
||||||
|
|
||||||
switch (msg.type)
|
switch (msg.type)
|
||||||
{
|
{
|
||||||
case SDL_CONTROLLERAXISMOTION:
|
case SDL_CONTROLLERAXISMOTION:
|
||||||
{
|
{
|
||||||
const SDL_ControllerAxisEvent &axisMsg = msg.caxis;
|
const SDL_ControllerAxisEvent &axisMsg = msg.caxis;
|
||||||
@@ -231,8 +231,8 @@ void GpInputDriverSDLGamepad::ProcessSDLEvent(const SDL_Event &msg)
|
|||||||
|
|
||||||
m_pendingEvents.push_back(evt);
|
m_pendingEvents.push_back(evt);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case SDL_CONTROLLERBUTTONDOWN:
|
case SDL_CONTROLLERBUTTONDOWN:
|
||||||
case SDL_CONTROLLERBUTTONUP:
|
case SDL_CONTROLLERBUTTONUP:
|
||||||
{
|
{
|
||||||
const bool isDown = (msg.type == SDL_CONTROLLERBUTTONDOWN);
|
const bool isDown = (msg.type == SDL_CONTROLLERBUTTONDOWN);
|
||||||
@@ -287,22 +287,22 @@ void GpInputDriverSDLGamepad::ProcessSDLEvent(const SDL_Event &msg)
|
|||||||
|
|
||||||
m_pendingEvents.push_back(evt);
|
m_pendingEvents.push_back(evt);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case SDL_CONTROLLERDEVICEADDED:
|
case SDL_CONTROLLERDEVICEADDED:
|
||||||
HandleDeviceAdded(msg.cdevice.which);
|
HandleDeviceAdded(msg.cdevice.which);
|
||||||
break;
|
break;
|
||||||
case SDL_CONTROLLERDEVICEREMOVED:
|
case SDL_CONTROLLERDEVICEREMOVED:
|
||||||
HandleDeviceRemoved(msg.cdevice.which);
|
HandleDeviceRemoved(msg.cdevice.which);
|
||||||
break;
|
break;
|
||||||
case SDL_CONTROLLERDEVICEREMAPPED:
|
case SDL_CONTROLLERDEVICEREMAPPED:
|
||||||
// Not really sure what to do here, just re-add it
|
// Not really sure what to do here, just re-add it
|
||||||
HandleDeviceRemoved(msg.cdevice.which);
|
HandleDeviceRemoved(msg.cdevice.which);
|
||||||
HandleDeviceAdded(msg.cdevice.which);
|
HandleDeviceAdded(msg.cdevice.which);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
IGpInputDriver *GpDriver_CreateInputDriver_SDL2_Gamepad(const GpInputDriverProperties &properties)
|
IGpInputDriver *GpDriver_CreateInputDriver_SDL2_Gamepad(const GpInputDriverProperties &properties)
|
||||||
{
|
{
|
||||||
return GpInputDriverSDLGamepad::Create(properties);
|
return GpInputDriverSDLGamepad::Create(properties);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user