]> git.localhorst.tv Git - l2e.git/commitdiff
allow checking of multiple keys at once
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Tue, 2 Oct 2012 20:03:12 +0000 (22:03 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Tue, 2 Oct 2012 20:03:12 +0000 (22:03 +0200)
src/app/Input.h

index ad5086920ac954119cb57ced60041d2fba956c75..988caa807c2eacc2f0424765c17bd9b8c05d11b2 100644 (file)
@@ -35,13 +35,13 @@ public:
        Input();
 
 public:
        Input();
 
 public:
-       bool IsDown(Button b) const {
+       bool IsDown(int b) const {
                return down & b;
        }
                return down & b;
        }
-       bool JustPressed(Button b) const {
+       bool JustPressed(int b) const {
                return pressed & b;
        }
                return pressed & b;
        }
-       bool JustReleased(Button b) const {
+       bool JustReleased(int b) const {
                return released & b;
        }
 
                return released & b;
        }