From: Daniel Karbach Date: Tue, 2 Oct 2012 20:03:12 +0000 (+0200) Subject: allow checking of multiple keys at once X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=8add322195bf2f619ba61bfea4335d28627b0b68;p=l2e.git allow checking of multiple keys at once --- 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; }