AE - Controller

Previous topic - Next topic

spacefractal

he, ok :-D.

the text after = is just user text, shown to the user. etc its will show "Press Left for Move Left". If you change to Go Left, its will say "Press Left for Go Left" instead. The reason is games have differents layout of course.

Im thinks im should do a easier way to do that in the future, and also im have not fully tested it on a regular Android Devices, but worked fine with AE2.2 on Ouya/GameStick, which was the main thing for gamecontrollers.

You just dont need to been in the main loop, just in init once.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

MrPlow

I'm really confused now...  :S

So...the text is just for display purposes to the user...?! When mapping?

So how do I know the mapping is set and what it is set to?

I am just not grasping this... or I'm missing a simple clue right under my nose... :)
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

spacefractal

#17
Its handled automatic by GameControllers.java, all remapping is done directly in Java, except the message. Im have internal tried to do that with a popup message, but its diddent work correctly (the key input was blocked).

So all you need is set that layout to tell GameControllers.java which remap order you want and which text when its got trigged.

When remapping is trigged, then you got some text to ButtonRemapMessage$. If the remap rutine is not started, the string is just empty. The remap is also first trigged on first keypress on a digital button.

Also there have been quit buggy in some versions with wrong playerid, so im recommered to uses v2.2 (with eventuelly with the older AndroidExtras.gbas). That why im not support older version.

Also again this was more suited to been uses with Ouya and GameStick, not with regular devices (which im have not tested very much).
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

MrPlow

Thanks!
I know Greedy Mouse remaps my USB controller just fine and I thought that was older AE version but maybe you put the newer version in it too.

I will look into the newer version of AE...providing it doesnt force overwrite of other GLB files and settings etc...

:good:
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

spacefractal

Yes im uses newest ae too of course, but with little slightly modified version, and doing many java calls directly. But all java part is the same as well the android project as in newest version.

Nice to hear greedy mouse did work, but was aware of the issue in karma Mima. I'm fix that in next version of the game.

You can eventuelly install new glbasic and then ae to on that.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/