mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-04-10 19:15:13 +00:00
Only run input code when input is pressed, not released.
This commit is contained in:
parent
ed64c22dcb
commit
bec3a2599a
|
@ -43,6 +43,8 @@ void GridGameListView::setCursor(FileData* file)
|
||||||
|
|
||||||
bool GridGameListView::input(InputConfig* config, Input input)
|
bool GridGameListView::input(InputConfig* config, Input input)
|
||||||
{
|
{
|
||||||
|
if(input.value != 0)
|
||||||
|
{
|
||||||
if(config->isMappedTo("a", input))
|
if(config->isMappedTo("a", input))
|
||||||
{
|
{
|
||||||
if(mGrid.getList().size() > 0)
|
if(mGrid.getList().size() > 0)
|
||||||
|
@ -77,6 +79,7 @@ bool GridGameListView::input(InputConfig* config, Input input)
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return GameListView::input(config, input);
|
return GameListView::input(config, input);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue