gopxl / pixel

A hand-crafted 2D game library in Go.
MIT License
225 stars 9 forks source link

add convienence methods for type of button #110

Closed dusk125 closed 3 weeks ago

dusk125 commented 3 weeks ago

Since we have a single structure for buttons that cover both keyboard and mouse buttons, this adds a few methods to make it easier to distinguish between them in a way that doesn't directly lock them to the layout of the buttons (from a user's perspective)