endlesstravel / Love2dCS

C# Wrapper for LÖVE, a 2d game engine
MIT License
166 stars 14 forks source link

MouseButtons should be a enum #85

Closed Shadowblitz16 closed 4 years ago

Shadowblitz16 commented 5 years ago

MouseButtons should be a enum instead of constants in the Mouse class

endlesstravel commented 4 years ago

ok, i already add them by:

        public bool IsDown(MouseButton btn) => IsDown((int)btn);
        public bool IsPressed(MouseButton btn) => IsPressed((int)btn);
        public bool IsReleased(MouseButton btn) => IsReleased((int)btn);

in version 11.0.45

Shadowblitz16 commented 4 years ago

awesome this will be really helpful