stackotter / delta-client

An open source Minecraft Java Edition client built for speed.
https://deltaclient.app
GNU General Public License v3.0
313 stars 33 forks source link

Add support for using mouse buttons as control bindings (closes #167) #168

Closed stackotter closed 11 months ago

stackotter commented 11 months ago

Description

Basically just adds an otherMouseButton case to the Key enum which has an associated value containing the button number. This is a breaking change for configuration files so updating to this commit will wipe your configuration. The breaking change happened because Codable was using the human readable descriptions of keys, but now that a case has an associated value (the mouse button number), I had to refactor things a bit.

Also updates InputView to product otherMouseButton up and down events.