britzl / defold-input

Simplify input related operations such as gesture detection, input mapping and clicking/dragging game objects
MIT License
111 stars 26 forks source link

Bindings and gamepads #18

Closed brettmjohnson closed 2 years ago

brettmjohnson commented 2 years ago

I noticed the "all.input_binding" matches the Defold builtins, and the "default.gamepads" in builtins has way more profiles than "in.gamepads". Should I be using the builtins in both cases?

subsoap commented 2 years ago

Things changed over time. Probably the version in this repo are older than the now updated builtins but still may have some useful things. You'll need to decide what's right for your project / suggest changes to the repo based on the differences you see.

brettmjohnson commented 2 years ago

I confirmed "all.input_binding" is the same.

The builtin "default.gamepads" file contains all the devices from "in.gamepads" except "Generic USB Joystick ". Also, some of the maps differ on "Wireless Controller" for osx.

That said, I'm going to use the builtins since there's only upsides there. I'd suggest maybe removing those files from the repo for simplicity. To avoid breaking others' projects, maybe updating the files to match the builtins would be better and changing the example project to use the builtins so people avoid this situation in the future?

Anyway, it's a handy tool.

britzl commented 2 years ago

@brettmjohnson good suggestion. The files are indeed old and I forgot they even existed in the repo!

britzl commented 2 years ago

I decided to remove them and make a new major version release.