IR button indexing fixes (#303)

* IR remote id fixes

* hiding private api

* fixing indexing of buttons
This commit is contained in:
Peli de Halleux
2018-02-05 15:11:11 -08:00
committed by GitHub
parent 538493369b
commit e58ec06e91
2 changed files with 19 additions and 18 deletions

View File

@ -25,12 +25,12 @@ namespace pxsim {
case InfraredRemoteButton.TopLeft: return 1;
case InfraredRemoteButton.BottomLeft: return 2;
case InfraredRemoteButton.TopRight: return 3;
case InfraredRemoteButton.CenterBeacon: return 9;
case InfraredRemoteButton.TopRight | InfraredRemoteButton.BottomRight: return 4;
case InfraredRemoteButton.BottomRight: return 4;
case InfraredRemoteButton.TopLeft | InfraredRemoteButton.TopRight: return 5;
case InfraredRemoteButton.TopLeft | InfraredRemoteButton.BottomRight: return 6;
case InfraredRemoteButton.BottomLeft | InfraredRemoteButton.TopRight: return 7;
case InfraredRemoteButton.BottomLeft | InfraredRemoteButton.BottomRight: return 8;
case InfraredRemoteButton.CenterBeacon: return 9;
case InfraredRemoteButton.BottomLeft | InfraredRemoteButton.TopLeft: return 10;
case InfraredRemoteButton.TopRight | InfraredRemoteButton.BottomRight: return 11;
default: return 0;