This commit is contained in:
Jean-Philip Desjardins 2016-06-19 23:33:00 -04:00
parent 2f899b681e
commit 4fee4366bf
2 changed files with 3 additions and 5 deletions

View File

@ -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))
{

View File

@ -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;