GameInput

Previous topic - Next topic

MrPlow

Hi
Does anyone have a newest version of the Gameinput files and example snippet of use...
Also if there is a corresponding gameinput.java file?

Thks!
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

spacefractal

#1
Here is the lastet code im uses in Greedy Mouse. Its all based on Android.Scancode() and KEY().

android.Scancode() (if im remember the correct one), is same as KEY(), but its return a float, rather than a int. Analoge buttons returns anything from 0-1 (so make sure you set a deadzone).

Since Android controllers is not implemented to joy commands is simple because.... its 100% impossible to do. that is due they are seen as a keyboard and there is really no mapping standard.

The only quite standard one is one stick/dpad (make sure to checks both) and the 4 face buttons. Rest does not follow a standard at all (unlike Windows)!

GameInput does also have a remapping, but mightbeen a little bit compliced one. In PowerUp Elevation im did even not choice to use this one this time.

But you are very wellcome to use GameInput :-).
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

spacefractal

but gameinput also works fine for Windows (both keyboard and joypad), iOS, Android and Pandora (without tested it throught). Only Android might require remapping.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

MrPlow

Thanks SF,

Looking to offer x box controller / or equivalent bluetooth controller for windows
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs