X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp%2FInput.h;h=988caa807c2eacc2f0424765c17bd9b8c05d11b2;hb=8add322195bf2f619ba61bfea4335d28627b0b68;hp=ad5086920ac954119cb57ced60041d2fba956c75;hpb=a67a3c4f6bc11cd5284d6c5aabf4a3e180517a03;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; }