Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No description about input_bindings in README #13

Closed
wsjscss opened this issue Jun 3, 2020 · 1 comment
Closed

No description about input_bindings in README #13

wsjscss opened this issue Jun 3, 2020 · 1 comment

Comments

@wsjscss
Copy link

wsjscss commented Jun 3, 2020

I spent about 1 hour to detect why I can't get the message_id == cursor.CLICKED
The reason was - different game.input_bindings configuration.
In my project I set Mouse trigger -> Button 1: click and it break cursor.CLICKED message with no warnings or any help to detect what error. After changing Mouse trigger -> Button 1: touch - everything works.

I suggest to add some instructions how to configure game.input_bindings, or add some warnings in library core like "You have no touch events in input config file. CLICK events won't wok"

Thank you =)

@britzl
Copy link
Owner

britzl commented Jun 4, 2020

I added an extra note about this in the readme for the cursor script:

https://github.com/britzl/defold-input/blob/master/in/cursor.md

There was already documentation about the action_id script property.

@britzl britzl closed this as completed Jun 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants