X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp%2FInput.h;h=988caa807c2eacc2f0424765c17bd9b8c05d11b2;hb=a1c89e41e38eca790e168b8acd3beee974685fcd;hp=ad5086920ac954119cb57ced60041d2fba956c75;hpb=867fd5d9b79c3b9c1d0fb17ba9f55cfe971b93d5;p=l2e.git diff --git a/src/app/Input.h b/src/app/Input.h index ad50869..988caa8 100644 --- a/src/app/Input.h +++ b/src/app/Input.h @@ -35,13 +35,13 @@ public: Input(); public: - bool IsDown(Button b) const { + bool IsDown(int b) const { return down & b; } - bool JustPressed(Button b) const { + bool JustPressed(int b) const { return pressed & b; } - bool JustReleased(Button b) const { + bool JustReleased(int b) const { return released & b; }