mirror of
https://github.com/libretro/Play-.git
synced 2024-12-04 15:26:23 +00:00
Cleanup.
This commit is contained in:
parent
2f899b681e
commit
4fee4366bf
@ -26,13 +26,11 @@ CPadHandler* CPH_DirectInput::PadHandlerFactory(HWND hWnd)
|
||||
|
||||
void CPH_DirectInput::Update(uint8* ram)
|
||||
{
|
||||
for(auto listenerIterator(std::begin(m_listeners));
|
||||
listenerIterator != std::end(m_listeners); listenerIterator++)
|
||||
for(auto& listener : m_listeners)
|
||||
{
|
||||
auto& listener(*listenerIterator);
|
||||
for(unsigned int i = 0; i < PS2::CControllerInfo::MAX_BUTTONS; i++)
|
||||
{
|
||||
PS2::CControllerInfo::BUTTON button = static_cast<PS2::CControllerInfo::BUTTON>(i);
|
||||
auto button = static_cast<PS2::CControllerInfo::BUTTON>(i);
|
||||
uint32 value = m_inputManager.GetBindingValue(button);
|
||||
if(PS2::CControllerInfo::IsAxis(button))
|
||||
{
|
||||
|
@ -13,7 +13,7 @@ public:
|
||||
CPH_DirectInput(HWND);
|
||||
virtual ~CPH_DirectInput();
|
||||
|
||||
void Update(uint8*);
|
||||
void Update(uint8*) override;
|
||||
|
||||
Framework::Win32::CWindow* CreateSettingsDialog(HWND) override;
|
||||
void OnSettingsDialogDestroyed() override;
|
||||
|
Loading…
Reference in New Issue
Block a user