Skip to content

Add bluetooth controller handling #2

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

Open
yuripourre opened this issue Jan 24, 2020 · 1 comment
Open

Add bluetooth controller handling #2

yuripourre opened this issue Jan 24, 2020 · 1 comment

Comments

@yuripourre
Copy link
Member

yuripourre commented Jan 24, 2020

Update android-desktop and AndroidEngine should have a list of handlers (that receive onKeyDown, onKeyUp, and onGenericMotion) that produces events.

Harium/android-desktop#4

@yuripourre
Copy link
Member Author

yuripourre commented Jan 24, 2020

The tricky part here will be reading joystick axis, then convert to int (maybe using byte array) to send the event as amount (and then convert back to use the real float value).

https://www.baeldung.com/java-convert-float-to-byte-array

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

1 participant