Android PS4 Controller

Report issues and bugs here.
User avatar
KoopaTheQuick
Posts: 5
Joined: Fri Jul 27, 2018 10:17 pm

Android PS4 Controller

Unread post by KoopaTheQuick » Sat Jul 28, 2018 3:28 pm

I downloaded the Android port last night to try it out and the PS4 controller would not map in game. I could somewhat navigate the menu with it. The d-pad wouldn't pick up at all and I'm sure it was working on the phone itself because I could use it to navigate the home screen and app list. The device is a ZTE Zmax Pro and the Android version is 6.0.1. The controller was connected via bluetooth. Aside from the controller not working, a way to disable touch screen controls in the options menu would be helpful as well because when my phone gets hot it sometimes starts spamming down in menus making it impossible to navigate. If any more info is needed please ask, I don't know everything that would be helpful for debugging.
User avatar
Huki
Developer
Posts: 88
Joined: Wed Dec 06, 2017 5:54 am
Discord: Huki#1668

Re: Android PS4 Controller

Unread post by Huki » Wed Aug 01, 2018 1:40 am

Quoting from the RVGL on Android thread:
praun wrote:
Wed Jul 18, 2018 6:03 pm
Huki wrote:
Wed Jul 18, 2018 4:55 pm
praun wrote:
Sat Jul 14, 2018 10:25 pm
I can't figure out how to configure my game controller... I want to remap the buttons for "accelerate" and "reverse" I can highlight them and they are blinking but I can't change them.
Were you able to select your controller from Controller Settings? Does the default mapping work?
Yes I can select Logitech cordless rumblepad 2, from controller options, and the default settings works.

I would just like to remap accelerate and reverse, from "up", "down" to "R2" , "L2" because the default mapping is impossible to control.

I can't remap them, but I don't know if it's a bug or if I'm just not doing it right...
Vyrium wrote:
Tue Jul 31, 2018 10:14 am
Another issue I had also relates to using the PS4 controller where I cannot map the dpad for turning (analog stick still works) the controller does function and all the other controls can be remapped, just not to the dpad. The dpad does work on the input name menu to rotate the wheel so it definitely is being detected in-game there at least.
To answer both of you and the OP of this thread, it's possible that your controller is missing the appropriate game controller mapping. I'll need to know your controller's GUID. Run the game with the controller plugged in and post the log file generated at profiles/re-volt_log.txt. It should have an entry like this, for your controller:

Code: Select all

Detected SDL2 version: 2.0.8
Input: 1 GameController mappings added
Input: Found controller at slot 0: Android Accelerometer (GUID: 416e64726f696420416363656c65726f)
Vyrium wrote:
Tue Jul 31, 2018 10:14 am
The dpad does work on the input name menu to rotate the wheel so it definitely is being detected in-game there at least.
If the dpad works at the name wheel, it is indeed detected by the game. I don't see why it isn't picked at the config menu then. Can you skip the intro screens by using the dpad?
User avatar
Vyrium
Posts: 6
Joined: Tue Jul 31, 2018 9:29 am

Re: Android PS4 Controller

Unread post by Vyrium » Wed Aug 01, 2018 7:15 am

Huki wrote:
Wed Aug 01, 2018 1:40 am
To answer both of you and the OP of this thread, it's possible that your controller is missing the appropriate game controller mapping. I'll need to know your controller's GUID. Run the game with the controller plugged in and post the log file generated at profiles/re-volt_log.txt. It should have an entry like this, for your controller:

Code: Select all

Detected SDL2 version: 2.0.8
Input: 1 GameController mappings added
Input: Found controller at slot 0: Android Accelerometer (GUID: 416e64726f696420416363656c65726f)
Sony Computer Entertainment Wireless Controller (GUID: 38393161636261653636653532386639)

Code: Select all

Detected SDL2 version: 2.0.8
Input: 1 GameController mappings added
Input: Found controller at slot 0: Sony Computer Entertainment Wireless Controller (GUID: 38393161636261653636653532386639)
Input: Found controller at slot 1: Android Accelerometer (GUID: 416e64726f696420416363656c65726f)
Full log
re-volt_log.txt

Code: Select all

RVGL Error Log File
Compilation date: 06:38:16, Jul 31 2018
Architecture: Android (32-bit arm)
Build: 18.0731a

Android: Using data path: '/sdcard/RVGL'

Android: Assets up to date

Timer Frequency: 1000000000

Loading: profiles/rvgl.ini: Found
Loading: strings/basque.txt: Found
Loading: strings/dutch.txt: Found
Loading: strings/english.txt: Found
Loading: strings/french.txt: Found
Loading: strings/german.txt: Found
Loading: strings/hungarian.txt: Found
Loading: strings/italian.txt: Found
Loading: strings/polish.txt: Found
Loading: strings/portuguese.txt: Found
Loading: strings/spanish.txt: Found
Loading: strings/swedish.txt: Found

Found language: Euskara (basque.txt)
Found language: Nederlands (dutch.txt)
Found language: English (english.txt)
Found language: Français (french.txt)
Found language: Deutsch (german.txt)
Found language: Magyar (hungarian.txt)
Found language: Italiano (italian.txt)
Found language: Polski (polish.txt)
Found language: Português (portuguese.txt)
Found language: Español (spanish.txt)
Found language: Svenska (swedish.txt)

Loading: strings/english.txt: Found
Loading: cars/rc/parameters.txt: Found
Loading: cars/mite/parameters.txt: Found
Loading: cars/phat/parameters.txt: Found
Loading: cars/moss/parameters.txt: Found
Loading: cars/mud/parameters.txt: Found
Loading: cars/beatall/parameters.txt: Found
Loading: cars/volken/parameters.txt: Found
Loading: cars/tc6/parameters.txt: Found
Loading: cars/dino/parameters.txt: Found
Loading: cars/candy/parameters.txt: Found
Loading: cars/gencar/parameters.txt: Found
Loading: cars/tc4/parameters.txt: Found
Loading: cars/mouse/parameters.txt: Found
Loading: cars/flag/parameters.txt: Found
Loading: cars/tc2/parameters.txt: Found
Loading: cars/r5/parameters.txt: Found
Loading: cars/tc5/parameters.txt: Found
Loading: cars/sgt/parameters.txt: Found
Loading: cars/tc3/parameters.txt: Found
Loading: cars/adeon/parameters.txt: Found
Loading: cars/fone/parameters.txt: Found
Loading: cars/tc1/parameters.txt: Found
Loading: cars/rotor/parameters.txt: Found
Loading: cars/cougar/parameters.txt: Found
Loading: cars/sugo/parameters.txt: Found
Loading: cars/toyeca/parameters.txt: Found
Loading: cars/amw/parameters.txt: Found
Loading: cars/panga/parameters.txt: Found
Loading: cars/trolley/parameters.txt: Found
Loading: cars/wincar/parameters.txt: Found
Loading: cars/wincar2/parameters.txt: Found
Loading: cars/wincar3/parameters.txt: Found
Loading: cars/wincar4/parameters.txt: Found
Loading: cars/ufo/parameters.txt: Found
Loading: cars/q/parameters.txt: Found
Loading: cars/bigvolt/parameters.txt: Found
Loading: cars/bossvolt/parameters.txt: Found
Loading: cars/jg6rc/parameters.txt: Found
Loading: cars/tc12/parameters.txt: Found
Loading: cars/tc10/parameters.txt: Found
Loading: cars/tc8/parameters.txt: Found
Loading: cars/tc11/parameters.txt: Found
Loading: cars/tc9/parameters.txt: Found
Loading: cars/jg1jg7/parameters.txt: Found
Loading: cars/tc7/parameters.txt: Found
Loading: cars/jg3loco/parameters.txt: Found
Loading: cars/jg4snw35/parameters.txt: Found
Loading: cars/jg5purpxl/parameters.txt: Found
Loading: cars/jg2fulonx/parameters.txt: Found

Video: Initializing...
Video: Opening window
Video: Found 1 display modes
Video: Setting display mode
Video: Creating OpenGL context
Video: Loading GL functions

===== Video Info =====
GL Vendor: ARM
GL Renderer: Mali-450 MP
GL Version: OpenGL ES-CM 1.1
GL_VERSION_1_2: Not Found
GL_VERSION_ES_CM_1_0: Found
GL_SGIS_texture_lod: Not Found
GL_SGIS_generate_mipmap: Not Found
GL_VERSION_1_3: Not Found
GL_ARB_texture_env_combine: Not Found
GL_EXT_texture_env_combine: Not Found
GL_ARB_multitexture: Not Found
GL_ARB_multisample: Not Found
GL_EXT_multisample: Not Found
GL_VERSION_1_4: Not Found
GL_EXT_fog_coord: Not Found
GL_ARB_vertex_array_bgra: Not Found
GL_EXT_vertex_array_bgra: Not Found
GL_EXT_clip_volume_hint: Not Found
GL_EXT_gpu_shader4: Not Found
GL_VERSION_2_0: Not Found
GL_ES_VERSION_2_0: Not Found
GL_VERSION_3_0: Not Found
GL_ES_VERSION_3_0: Not Found
GL_ARB_framebuffer_object: Not Found
GL_EXT_framebuffer_object: Not Found
GL_EXT_framebuffer_blit: Not Found
GL_EXT_framebuffer_multisample: Not Found
GL_ANGLE_framebuffer_blit: Not Found
GL_ANGLE_framebuffer_multisample: Not Found
GL_OES_rgb8_rgba8: Found
GL_OES_packed_depth_stencil: Found
GL_OES_depth24: Found
GL_VERSION_3_1: Not Found
GL_ARB_uniform_buffer_object: Not Found
GL_ES_VERSION_3_1: Not Found
GL_VERSION_4_1: Not Found
GL_ARB_separate_shader_objects: Not Found
GL_ARB_get_program_binary: Not Found
GL_OES_get_program_binary: Not Found
GL_VERSION_4_6: Not Found
GL_ARB_texture_filter_anisotropic: Not Found
GL_EXT_texture_filter_anisotropic: Not Found
===== Video Info =====

Video: Window format: 5 6 5 0 24 8 0 0 0
Video: Done

Detected SDL2 version: 2.0.8
Input: 1 GameController mappings added
Input: Found controller at slot 0: Sony Computer Entertainment Wireless Controller (GUID: 38393161636261653636653532386639)
Input: Found controller at slot 1: Android Accelerometer (GUID: 416e64726f696420416363656c65726f)

Loading: cars/misc/parameters.txt: Not Found
Loading: profiles/vyrium/profile.ini: Found
Loading: profiles/vyrium/profile.ini: Found
Loading: levels/stunts/stunts.fob: Found
Loading: profiles/vyrium/nhood1.level: Found
Loading: profiles/vyrium/market2.level: Found
Loading: profiles/vyrium/muse2.level: Found
Loading: profiles/vyrium/garden1.level: Found
Loading: profiles/vyrium/roof.level: Found
Loading: profiles/vyrium/toylite.level: Found
Loading: profiles/vyrium/wild_west1.level: Found
Loading: profiles/vyrium/toy2.level: Found
Loading: profiles/vyrium/nhood2.level: Found
Loading: profiles/vyrium/ship1.level: Found
Loading: profiles/vyrium/muse1.level: Found
Loading: profiles/vyrium/market1.level: Found
Loading: profiles/vyrium/wild_west2.level: Found
Loading: profiles/vyrium/ship2.level: Found
Loading: profiles/vyrium/stunts.stunt: Found
Loading: strings/english.txt: Found
Loading: gfx/font.bmo: Found
Loading: gfx/font.bmn: Not Found
Loading: gfx/font.bmp: Found
Loading: gfx/font.bmq: Not Found
Loading: gfx/spru.bmo: Not Found
Loading: gfx/spru.bmp: Found
Loading: gfx/spru.bmq: Not Found
Loading: gfx/overlay.bmo: Found
Loading: gfx/overlay.bmn: Not Found
Loading: gfx/overlay.bmp: Found
Loading: gfx/overlay.bmq: Not Found
Loading: gfx/loadinga.bmo: Not Found
Loading: gfx/loadinga.bmp: Found
Loading: gfx/loadinga.bmq: Found
Loading: gfx/loadinga.bmr: Not Found
Loading: gfx/loadingb.bmo: Not Found
Loading: gfx/loadingb.bmp: Found
Loading: gfx/loadingb.bmq: Found
Loading: gfx/loadingb.bmr: Not Found
Loading: gfx/loadingc.bmo: Not Found
Loading: gfx/loadingc.bmp: Found
Loading: gfx/loadingc.bmq: Found
Loading: gfx/loadingc.bmr: Not Found
Loading: gfx/devlogo1a.bmo: Not Found
Loading: gfx/devlogo1a.bmp: Found
Loading: gfx/devlogo1a.bmq: Not Found
Loading: gfx/devlogo1b.bmo: Not Found
Loading: gfx/devlogo1b.bmp: Found
Loading: gfx/devlogo1b.bmq: Not Found
Loading: gfx/devlogo1c.bmo: Not Found
Loading: gfx/devlogo1c.bmp: Found
Loading: gfx/devlogo1c.bmq: Not Found
Loading: gfx/devlogo2a.bmo: Not Found
Loading: gfx/devlogo2a.bmp: Found
Loading: gfx/devlogo2a.bmq: Not Found
Loading: gfx/devlogo2b.bmo: Not Found
Loading: gfx/devlogo2b.bmp: Found
Loading: gfx/devlogo2b.bmq: Not Found
Loading: gfx/devlogo2c.bmo: Not Found
Loading: gfx/devlogo2c.bmp: Found
Loading: gfx/devlogo2c.bmq: Not Found
Loading: gfx/font.bmo: Found
Loading: gfx/font.bmn: Not Found
Loading: gfx/font.bmp: Found
Loading: gfx/font.bmq: Not Found
Loading: gfx/spru.bmo: Not Found
Loading: gfx/spru.bmp: Found
Loading: gfx/spru.bmq: Not Found
Loading: gfx/overlay.bmo: Found
Loading: gfx/overlay.bmn: Not Found
Loading: gfx/overlay.bmp: Found
Loading: gfx/overlay.bmq: Not Found
Loading: gfx/loadinga.bmo: Not Found
Loading: gfx/loadinga.bmp: Found
Loading: gfx/loadinga.bmq: Found
Loading: gfx/loadinga.bmr: Not Found
Loading: gfx/loadingb.bmo: Not Found
Loading: gfx/loadingb.bmp: Found
Loading: gfx/loadingb.bmq: Found
Loading: gfx/loadingb.bmr: Not Found
Loading: gfx/loadingc.bmo: Not Found
Loading: gfx/loadingc.bmp: Found
Loading: gfx/loadingc.bmq: Found
Loading: gfx/loadingc.bmr: Not Found
Loading: profiles/vyrium/intro.level: Not Found
Loading: levels/intro/intro.pan: Not Found
Loading: levels/intro/intro.inf: Found
Loading: gfx/fxpage1.bmo: Not Found
Loading: gfx/fxpage1.bmp: Found
Loading: gfx/fxpage1.bmq: Not Found
Loading: gfx/fxpage2.bmo: Not Found
Loading: gfx/fxpage2.bmp: Found
Loading: gfx/fxpage2.bmq: Not Found
Loading: gfx/fxpage3.bmo: Not Found
Loading: gfx/fxpage3.bmp: Found
Loading: gfx/fxpage3.bmq: Not Found
Loading: gfx/envstill.bmo: Not Found
Loading: gfx/envstill.bmp: Found
Loading: gfx/envstill.bmq: Found
Loading: gfx/envstill.bmr: Not Found
Loading: gfx/envroll.bmo: Not Found
Loading: gfx/envroll.bmp: Found
Loading: gfx/envroll.bmq: Found
Loading: gfx/envroll.bmr: Not Found
Loading: cars/misc/shadow.bmo: Not Found
Loading: cars/misc/shadow.bmp: Found
Loading: cars/misc/shadow.bmq: Found
Loading: cars/misc/shadow.bmr: Not Found
Loading: levels/intro/introa.bmo: Not Found
Loading: levels/intro/introa.bmp: Found
Loading: levels/intro/introa.bmq: Not Found
Loading: levels/intro/introb.bmo: Not Found
Loading: levels/intro/introb.bmp: Found
Loading: levels/intro/introb.bmq: Not Found
Loading: levels/intro/introc.bmo: Not Found
Loading: levels/intro/introc.bmp: Not Found
Loading: levels/intro/introd.bmo: Not Found
Loading: levels/intro/introd.bmp: Not Found
Loading: levels/intro/introe.bmo: Not Found
Loading: levels/intro/introe.bmp: Not Found
Loading: levels/intro/introf.bmo: Not Found
Loading: levels/intro/introf.bmp: Not Found
Loading: levels/intro/introg.bmo: Not Found
Loading: levels/intro/introg.bmp: Not Found
Loading: levels/intro/introh.bmo: Not Found
Loading: levels/intro/introh.bmp: Not Found
Loading: levels/intro/introi.bmo: Not Found
Loading: levels/intro/introi.bmp: Not Found
Loading: levels/intro/introj.bmo: Not Found
Loading: levels/intro/introj.bmp: Not Found
Loading: levels/intro/intro.w: Found
Loading: levels/intro/intro.vis: Found
Loading: levels/intro/intro.rim: Found
Loading: levels/intro/intro.fin: Found
Loading: levels/intro/intro.ncp: Found
Loading: levels/intro/intro.lit: Found
Loading: levels/intro/intro.taz: Not Found
Loading: levels/intro/intro.fan: Not Found
Loading: levels/intro/intro.fld: Not Found
Loading: levels/intro/intro.pan: Not Found
Loading: levels/intro/intro.cam: Not Found
Loading: models/go3.m: Found
Loading: models/go2.m: Found
Loading: models/go1.m: Found
Loading: models/gogo.m: Found
Loading: models/drum.m: Found
Loading: models/mt.bin: Found
AL: Existing OpenAL error in LoadSfx(): 0
Loading: levels/intro/intro.tri: Not Found
Loading: models/pickup.m: Found
Loading: models/pickup.hul: Not Found
Loading: models/pickup.ncp: Not Found
Loading: models/firework.m: Found
Loading: models/firework.hul: Found
Loading: models/wbomb.m: Found
Loading: models/wbomb.hul: Not Found
Loading: models/wbomb.ncp: Not Found
Loading: models/ball.m: Found
Loading: models/ball.hul: Not Found
Loading: models/ball.ncp: Not Found
Loading: models/ball.m: Found
Loading: models/ball.hul: Not Found
Loading: models/ball.ncp: Not Found
Loading: models/star.m: Found
Loading: models/star.hul: Not Found
Loading: models/star.ncp: Not Found
Loading: levels/intro/intro.fob: Not Found
Loading: levels/intro/properties.txt: Not Found
Loading: cars/ufo/parameters.txt: Found
Warning: Unrecognised word: "Handling"
Warning: Unrecognised word: "50.000000"
Loading: cars/ufo/car.bmo: Not Found
Loading: cars/ufo/car.bmp: Found
Loading: cars/ufo/car.bmq: Found
Loading: cars/ufo/car.bmr: Not Found
Loading: cars/ufo/shadow.bmo: Not Found
Loading: cars/ufo/shadow.bmp: Found
Loading: cars/ufo/shadow.bmq: Found
Loading: cars/ufo/shadow.bmr: Not Found
Loading: cars/ufo/body.prm: Found
Loading: cars/misc/aerial.m: Found
Loading: cars/misc/aerialt.m: Found
Loading: cars/ufo/hull.hul: Found
Loading: cars/rc/parameters.txt: Found
Warning: Unrecognised word: "Handling"
Warning: Unrecognised word: "90.000000"
Loading: cars/rc/car.bmo: Not Found
Loading: cars/rc/car.bmp: Found
Loading: cars/rc/car.bmq: Found
Loading: cars/rc/car.bmr: Not Found
Loading: cars/rc/body.prm: Found
Loading: cars/rc/wheelfl.prm: Found
Loading: cars/rc/wheelfr.prm: Found
Loading: cars/rc/wheelbl.prm: Found
Loading: cars/rc/wheelbr.prm: Found
Loading: cars/rc/spring.prm: Found
Loading: cars/rc/axle.prm: Found
Loading: cars/rc/pin.prm: Found
Loading: cars/misc/aerial.m: Found
Loading: cars/misc/aerialt.m: Found
Loading: cars/rc/hull.hul: Found
Loading: cars/flag/parameters.txt: Found
Warning: Unrecognised word: "Handling"
Warning: Unrecognised word: "50.000000"
Loading: cars/flag/car.bmo: Not Found
Loading: cars/flag/car.bmp: Found
Loading: cars/flag/car.bmq: Found
Loading: cars/flag/car.bmr: Not Found
Loading: cars/flag/body.prm: Found
Loading: cars/flag/wheelfl.prm: Found
Loading: cars/flag/wheelfr.prm: Found
Loading: cars/flag/wheelbl.prm: Found
Loading: cars/flag/wheelbr.prm: Found
Loading: cars/flag/spring.prm: Found
Loading: cars/flag/axle.prm: Found
Loading: cars/flag/pin.prm: Found
Loading: cars/misc/aerial.m: Found
Loading: cars/misc/aerialt.m: Found
Loading: cars/flag/hull.hul: Found
Loading: models/probe.m: Found
Loading: models/probe.hul: Found
Loading: levels/intro/ufopath.pth: Found
Loading: gfx/font.bmo: Found
Loading: gfx/font.bmn: Not Found
Loading: gfx/font.bmp: Found
Loading: gfx/font.bmq: Not Found
Loading: gfx/spru.bmo: Not Found
Loading: gfx/spru.bmp: Found
Loading: gfx/spru.bmq: Not Found
Loading: gfx/overlay.bmo: Found
Loading: gfx/overlay.bmn: Not Found
Loading: gfx/overlay.bmp: Found
Loading: gfx/overlay.bmq: Not Found
Loading: gfx/loadinga.bmo: Not Found
Loading: gfx/loadinga.bmp: Found
Loading: gfx/loadinga.bmq: Found
Loading: gfx/loadinga.bmr: Not Found
Loading: gfx/loadingb.bmo: Not Found
Loading: gfx/loadingb.bmp: Found
Loading: gfx/loadingb.bmq: Found
Loading: gfx/loadingb.bmr: Not Found
Loading: gfx/loadingc.bmo: Not Found
Loading: gfx/loadingc.bmp: Found
Loading: gfx/loadingc.bmq: Found
Loading: gfx/loadingc.bmr: Not Found
Loading: profiles/vyrium/frontend.level: Not Found
Loading: levels/frontend/frontend.pan: Found
Loading: levels/frontend/frontend.inf: Found
Loading: gfx/fxpage1.bmo: Not Found
Loading: gfx/fxpage1.bmp: Found
Loading: gfx/fxpage1.bmq: Not Found
Loading: gfx/fxpage2.bmo: Not Found
Loading: gfx/fxpage2.bmp: Found
Loading: gfx/fxpage2.bmq: Not Found
Loading: gfx/fxpage3.bmo: Not Found
Loading: gfx/fxpage3.bmp: Found
Loading: gfx/fxpage3.bmq: Not Found
Loading: gfx/envfront.bmo: Not Found
Loading: gfx/envfront.bmp: Found
Loading: gfx/envfront.bmq: Found
Loading: gfx/envfront.bmr: Not Found
Loading: gfx/envroll.bmo: Not Found
Loading: gfx/envroll.bmp: Found
Loading: gfx/envroll.bmq: Found
Loading: gfx/envroll.bmr: Not Found
Loading: cars/misc/shadow.bmo: Not Found
Loading: cars/misc/shadow.bmp: Found
Loading: cars/misc/shadow.bmq: Found
Loading: cars/misc/shadow.bmr: Not Found
Loading: levels/frontend/frontenda.bmo: Not Found
Loading: levels/frontend/frontenda.bmp: Found
Loading: levels/frontend/frontenda.bmq: Found
Loading: levels/frontend/frontenda.bmr: Not Found
Loading: levels/frontend/frontendb.bmo: Not Found
Loading: levels/frontend/frontendb.bmp: Found
Loading: levels/frontend/frontendb.bmq: Found
Loading: levels/frontend/frontendb.bmr: Not Found
Loading: levels/frontend/frontendc.bmo: Not Found
Loading: levels/frontend/frontendc.bmp: Found
Loading: levels/frontend/frontendc.bmq: Found
Loading: levels/frontend/frontendc.bmr: Not Found
Loading: levels/frontend/frontendd.bmo: Not Found
Loading: levels/frontend/frontendd.bmp: Found
Loading: levels/frontend/frontendd.bmq: Found
Loading: levels/frontend/frontendd.bmr: Not Found
Loading: levels/frontend/frontende.bmo: Not Found
Loading: levels/frontend/frontende.bmp: Found
Loading: levels/frontend/frontende.bmq: Found
Loading: levels/frontend/frontende.bmr: Not Found
Loading: levels/frontend/frontendf.bmo: Not Found
Loading: levels/frontend/frontendf.bmp: Found
Loading: levels/frontend/frontendf.bmq: Found
Loading: levels/frontend/frontendf.bmr: Not Found
Loading: levels/frontend/frontendg.bmo: Not Found
Loading: levels/frontend/frontendg.bmp: Found
Loading: levels/frontend/frontendg.bmq: Found
Loading: levels/frontend/frontendg.bmr: Not Found
Loading: levels/frontend/frontendh.bmo: Not Found
Loading: levels/frontend/frontendh.bmp: Found
Loading: levels/frontend/frontendh.bmq: Found
Loading: levels/frontend/frontendh.bmr: Not Found
Loading: levels/frontend/frontendi.bmo: Not Found
Loading: levels/frontend/frontendi.bmp: Found
Loading: levels/frontend/frontendi.bmq: Found
Loading: levels/frontend/frontendi.bmr: Not Found
Loading: levels/frontend/frontendj.bmo: Not Found
Loading: levels/frontend/frontendj.bmp: Not Found
Loading: levels/frontend/frontend.w: Found
Loading: levels/frontend/frontend.vis: Found
Loading: levels/frontend/frontend.rim: Found
Loading: levels/frontend/bballbox.prm: Found
Loading: levels/frontend/bballbox.ncp: Not Found
Loading: levels/frontend/box01.prm: Found
Loading: levels/frontend/box01.ncp: Not Found
Loading: levels/frontend/box02.prm: Found
Loading: levels/frontend/box02.ncp: Not Found
Loading: levels/frontend/box03.prm: Found
Loading: levels/frontend/box03.ncp: Not Found
Loading: levels/frontend/box04.prm: Found
Loading: levels/frontend/box04.ncp: Not Found
Loading: levels/frontend/box05.prm: Found
Loading: levels/frontend/box05.ncp: Not Found
Loading: levels/frontend/box5.prm: Found
Loading: levels/frontend/box5.ncp: Not Found
Loading: levels/frontend/chicks.prm: Found
Loading: levels/frontend/chicks.ncp: Not Found
Loading: levels/frontend/clockcase.prm: Found
Loading: levels/frontend/clockcase.ncp: Not Found
Loading: levels/frontend/cup01.prm: Found
Loading: levels/frontend/cup01.ncp: Not Found
Loading: levels/frontend/helbladebig.prm: Found
Loading: levels/frontend/helbladebig.ncp: Not Found
Loading: levels/frontend/helbladesmall.prm: Found
Loading: levels/frontend/helbladesmall.ncp: Not Found
Loading: levels/frontend/hellbody.prm: Found
Loading: levels/frontend/hellbody.ncp: Not Found
Loading: levels/frontend/hellsb.prm: Found
Loading: levels/frontend/hellsb.ncp: Not Found
Loading: levels/frontend/largemagstand.prm: Found
Loading: levels/frontend/largemagstand.ncp: Not Found
Loading: levels/frontend/light.prm: Found
Loading: levels/frontend/light.ncp: Not Found
Loading: levels/frontend/magstand.prm: Found
Loading: levels/frontend/magstand.ncp: Not Found
Loading: levels/frontend/pangacard.prm: Found
Loading: levels/frontend/pangacard.ncp: Found
Loading: levels/frontend/plain.prm: Found
Loading: levels/frontend/plain.ncp: Not Found
Loading: levels/frontend/podium.prm: Found
Loading: levels/frontend/podium.ncp: Found
Loading: levels/frontend/posterstand.prm: Found
Loading: levels/frontend/posterstand.ncp: Not Found
Loading: levels/frontend/posterstand2.prm: Found
Loading: levels/frontend/posterstand2.ncp: Not Found
Loading: levels/frontend/salebin.prm: Found
Loading: levels/frontend/salebin.ncp: Not Found
Loading: levels/frontend/smallscreen.prm: Found
Loading: levels/frontend/smallscreen.ncp: Not Found
Loading: levels/frontend/track.prm: Found
Loading: levels/frontend/track.ncp: Not Found
Loading: levels/frontend/tvstand.prm: Found
Loading: levels/frontend/tvstand.ncp: Not Found
Loading: levels/frontend/ufostand.prm: Found
Loading: levels/frontend/ufostand.ncp: Not Found
Loading: levels/frontend/frontend.fin: Found
Loading: levels/frontend/frontend.ncp: Found
Loading: levels/frontend/frontend.lit: Found
Loading: levels/frontend/frontend.taz: Found
Loading: levels/frontend/frontend.fan: Found
Loading: levels/frontend/frontend.fld: Found
Loading: levels/frontend/frontend.pan: Found
Loading: levels/frontend/frontend.cam: Found
Loading: models/go3.m: Found
Loading: models/go2.m: Found
Loading: models/go1.m: Found
Loading: models/gogo.m: Found
Loading: models/drum.m: Found
Loading: models/mt.bin: Found
AL: Existing OpenAL error in LoadSfx(): 0
Loading: levels/frontend/frontend.tri: Found
Loading: models/pickup.m: Found
Loading: models/pickup.hul: Not Found
Loading: models/pickup.ncp: Not Found
Loading: models/firework.m: Found
Loading: models/firework.hul: Found
Loading: models/wbomb.m: Found
Loading: models/wbomb.hul: Not Found
Loading: models/wbomb.ncp: Not Found
Loading: models/ball.m: Found
Loading: models/ball.hul: Not Found
Loading: models/ball.ncp: Not Found
Loading: models/ball.m: Found
Loading: models/ball.hul: Not Found
Loading: models/ball.ncp: Not Found
Loading: models/star.m: Found
Loading: models/star.hul: Not Found
Loading: models/star.ncp: Not Found
Loading: levels/frontend/frontend.fob: Found
Loading: levels/frontend/smallscreen.m: Found
Loading: levels/frontend/smallscreen.hul: Not Found
Loading: levels/frontend/smallscreen.ncp: Not Found
Loading: levels/frontend/namestand.m: Found
Loading: levels/frontend/namestand.hul: Not Found
Loading: levels/frontend/namestand.ncp: Not Found
Loading: levels/frontend/namewheel.m: Found
Loading: levels/frontend/namewheel.hul: Not Found
Loading: levels/frontend/namewheel.ncp: Not Found
Loading: levels/frontend/carbox.m: Found
Loading: levels/frontend/carbox.hul: Not Found
Loading: levels/frontend/carbox.ncp: Not Found
Loading: levels/frontend/plainbox.m: Found
Loading: levels/frontend/plainbox.hul: Not Found
Loading: levels/frontend/plainbox.ncp: Not Found
Loading: models/cone.m: Found
Loading: models/cone.hul: Found
Loading: levels/frontend/bigscreen.m: Found
Loading: levels/frontend/bigscreen.hul: Not Found
Loading: levels/frontend/bigscreen.ncp: Not Found
Loading: gfx/market1.bmo: Not Found
Loading: gfx/market1.bmp: Found
Loading: gfx/market1.bmq: Found
Loading: gfx/market1.bmr: Not Found
Loading: levels/frontend/clockbody.m: Found
Loading: levels/frontend/clockbody.hul: Not Found
Loading: levels/frontend/clockbody.ncp: Not Found
Loading: levels/frontend/clockhandsmall.m: Found
Loading: levels/frontend/clockhandsmall.hul: Not Found
Loading: levels/frontend/clockhandsmall.ncp: Not Found
Loading: levels/frontend/clockhandlarge.m: Found
Loading: levels/frontend/clockhandlarge.hul: Not Found
Loading: levels/frontend/clockhandlarge.ncp: Not Found
Loading: levels/frontend/clockdisc.m: Found
Loading: levels/frontend/clockdisc.hul: Not Found
Loading: levels/frontend/clockdisc.ncp: Not Found
Loading: levels/frontend/cup04.m: Found
Loading: levels/frontend/cup04.hul: Not Found
Loading: levels/frontend/cup04.ncp: Not Found
Loading: levels/frontend/cup02.m: Found
Loading: levels/frontend/cup02.hul: Not Found
Loading: levels/frontend/cup02.ncp: Not Found
Loading: levels/frontend/cup01.m: Found
Loading: levels/frontend/cup01.hul: Not Found
Loading: levels/frontend/cup01.ncp: Not Found
Loading: levels/frontend/cup03.m: Found
Loading: levels/frontend/cup03.hul: Not Found
Loading: levels/frontend/cup03.ncp: Not Found
Loading: levels/frontend/properties.txt: Not Found
Loading: cars/wincar/parameters.txt: Found
Warning: Unrecognised word: "Handling"
Warning: Unrecognised word: "50.000000"
Loading: cars/wincar/car.bmo: Not Found
Loading: cars/wincar/car.bmp: Found
Loading: cars/wincar/car.bmq: Found
Loading: cars/wincar/car.bmr: Not Found
Loading: cars/wincar/shadow.bmo: Not Found
Loading: cars/wincar/shadow.bmp: Found
Loading: cars/wincar/shadow.bmq: Found
Loading: cars/wincar/shadow.bmr: Not Found
Loading: cars/wincar/body.prm: Found
Loading: cars/wincar/wheelfl.prm: Found
Loading: cars/wincar/wheelfr.prm: Found
Loading: cars/wincar/wheelbl.prm: Found
Loading: cars/wincar/wheelbr.prm: Found
Loading: cars/wincar/key.prm: Found
Loading: cars/misc/aerial.m: Found
Loading: cars/misc/aerialt.m: Found
Loading: cars/wincar/hull.hul: Found
Loading: cars/wincar2/parameters.txt: Found
Warning: Unrecognised word: "Handling"
Warning: Unrecognised word: "50.000000"
Loading: cars/wincar2/car.bmo: Not Found
Loading: cars/wincar2/car.bmp: Found
Loading: cars/wincar2/car.bmq: Found
Loading: cars/wincar2/car.bmr: Not Found
Loading: cars/wincar2/shadow.bmo: Not Found
Loading: cars/wincar2/shadow.bmp: Found
Loading: cars/wincar2/shadow.bmq: Found
Loading: cars/wincar2/shadow.bmr: Not Found
Loading: cars/wincar2/body.prm: Found
Loading: cars/wincar2/wheelfl.prm: Found
Loading: cars/wincar2/wheelfr.prm: Found
Loading: cars/wincar2/wheelbl.prm: Found
Loading: cars/wincar2/wheelbr.prm: Found
Loading: cars/wincar2/key.prm: Found
Loading: cars/misc/aerial.m: Found
Loading: cars/misc/aerialt.m: Found
Loading: cars/wincar2/hull.hul: Found
Loading: cars/wincar3/parameters.txt: Found
Warning: Unrecognised word: "Handling"
Warning: Unrecognised word: "50.000000"
Loading: cars/wincar3/car.bmo: Not Found
Loading: cars/wincar3/car.bmp: Found
Loading: cars/wincar3/car.bmq: Found
Loading: cars/wincar3/car.bmr: Not Found
Loading: cars/wincar3/shadow.bmo: Not Found
Loading: cars/wincar3/shadow.bmp: Found
Loading: cars/wincar3/shadow.bmq: Found
Loading: cars/wincar3/shadow.bmr: Not Found
Loading: cars/wincar3/body.prm: Found
Loading: cars/wincar3/wheelfl.prm: Found
Loading: cars/wincar3/wheelfr.prm: Found
Loading: cars/wincar3/wheelbl.prm: Found
Loading: cars/wincar3/wheelbr.prm: Found
Loading: cars/wincar3/key.prm: Found
Loading: cars/misc/aerial.m: Found
Loading: cars/misc/aerialt.m: Found
Loading: cars/wincar3/hull.hul: Found
Loading: levels/frontend/carbox1.bmo: Not Found
Loading: levels/frontend/carbox1.bmp: Found
Loading: levels/frontend/carbox1.bmq: Found
Loading: levels/frontend/carbox1.bmr: Not Found
Loading: levels/frontend/carbox2.bmo: Not Found
Loading: levels/frontend/carbox2.bmp: Found
Loading: levels/frontend/carbox2.bmq: Found
Loading: levels/frontend/carbox2.bmr: Not Found
Loading: levels/frontend/carbox3.bmo: Not Found
Loading: levels/frontend/carbox3.bmp: Found
Loading: levels/frontend/carbox3.bmq: Found
Loading: levels/frontend/carbox3.bmr: Not Found
Huki wrote:
Wed Aug 01, 2018 1:40 am
If the dpad works at the name wheel, it is indeed detected by the game. I don't see why it isn't picked at the config menu then. Can you skip the intro screens by using the dpad?
Tried and the dpad doesnt work there. The other buttons do skip.
User avatar
Huki
Developer
Posts: 88
Joined: Wed Dec 06, 2017 5:54 am
Discord: Huki#1668

Re: Android PS4 Controller

Unread post by Huki » Thu Aug 02, 2018 4:54 am

I'm uploading a test build:
rvgl_android_controller_test.apk

1) It should fix the L2 / R2 not working, reported with the "Logitech cordless rumblepad 2" by @praun.

2) For the PS4 controller, for some reason Android isn't sending DPad button events to the game. It's probably sent as a joystick "hat", which we don't directly support. If you look at the existing controller mapping database included with RVGL (gamecontrollerdb.txt in the game folder), there is an entry for PS4 Controller under the Android section:

Code: Select all

35643031303033326130316330353564,PS4 Controller,a:b1,b:b17,back:b15,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b5,leftshoulder:b3,leftstick:b4,lefttrigger:+a3,leftx:a0,lefty:a1,rightshoulder:b18,rightstick:b6,righttrigger:+a4,rightx:a2,righty:a5,start:b16,x:b0,y:b2,platform:Android,
but the GUID is different from yours. As you can see, it maps hat 0 to the dpad. You could try copying this line and change the GUID to match yours.
Create a new file called gamecontrollerdb.txt in the profiles folder and add this line:

Code: Select all

38393161636261653636653532386639,PS4 Controller,a:b1,b:b17,back:b15,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b5,leftshoulder:b3,leftstick:b4,lefttrigger:+a3,leftx:a0,lefty:a1,rightshoulder:b18,rightstick:b6,righttrigger:+a4,rightx:a2,righty:a5,start:b16,x:b0,y:b2,platform:Android,
Not sure if the button mappings make sense for your controller GUID, but it's worth a try...
User avatar
Vyrium
Posts: 6
Joined: Tue Jul 31, 2018 9:29 am

Re: Android PS4 Controller

Unread post by Vyrium » Fri Aug 03, 2018 11:21 pm

Huki wrote:
Thu Aug 02, 2018 4:54 am
I'm uploading a test build:
rvgl_android_controller_test.apk

1) It should fix the L2 / R2 not working, reported with the "Logitech cordless rumblepad 2" by @praun.

2) For the PS4 controller, for some reason Android isn't sending DPad button events to the game. It's probably sent as a joystick "hat", which we don't directly support. If you look at the existing controller mapping database included with RVGL (gamecontrollerdb.txt in the game folder), there is an entry for PS4 Controller under the Android section:

Code: Select all

35643031303033326130316330353564,PS4 Controller,a:b1,b:b17,back:b15,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b5,leftshoulder:b3,leftstick:b4,lefttrigger:+a3,leftx:a0,lefty:a1,rightshoulder:b18,rightstick:b6,righttrigger:+a4,rightx:a2,righty:a5,start:b16,x:b0,y:b2,platform:Android,
but the GUID is different from yours. As you can see, it maps hat 0 to the dpad. You could try copying this line and change the GUID to match yours.
Create a new file called gamecontrollerdb.txt in the profiles folder and add this line:

Code: Select all

38393161636261653636653532386639,PS4 Controller,a:b1,b:b17,back:b15,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b5,leftshoulder:b3,leftstick:b4,lefttrigger:+a3,leftx:a0,lefty:a1,rightshoulder:b18,rightstick:b6,righttrigger:+a4,rightx:a2,righty:a5,start:b16,x:b0,y:b2,platform:Android,
Not sure if the button mappings make sense for your controller GUID, but it's worth a try...
Good news is that I can turn with the dpad :D but using that mapping takes away the use of the L1 and R1 buttons
Also is there a way to figure out which button is which in the profile.ini config apart from trial and error? Sometimes configuring in game can cause the right axis to be assigned which breaks the menu and I can't assign anything anymore
User avatar
Huki
Developer
Posts: 88
Joined: Wed Dec 06, 2017 5:54 am
Discord: Huki#1668

Re: Android PS4 Controller

Unread post by Huki » Sat Aug 04, 2018 7:24 am

Vyrium wrote:
Fri Aug 03, 2018 11:21 pm
Also is there a way to figure out which button is which in the profile.ini config apart from trial and error? Sometimes configuring in game can cause the right axis to be assigned which breaks the menu and I can't assign anything anymore
Do you mean the right axis is detected as always pressed? Is the axis broken? It used to be a problem with triggers before GameController support was added.
Here's a new build: It disables axes that are detected to be always pressed at the config screen, so it should avoid messing up the menu.
rvgl_android_controller_test2.apk
Vyrium wrote:
Fri Aug 03, 2018 11:21 pm
Good news is that I can turn with the dpad :D but using that mapping takes away the use of the L1 and R1 buttons
Ok, that's a good start. Now the mapping has to be updated for your controller. Then I'll see about submitting it upstream so it should work out of the box for anyone with the same controller GUID.

Creating a mapping is simple on Desktop platforms as you have tools available like this: http://www.generalarcade.com/gamepadtool/
In Android it's a bit tricky, so we'll need to manually find your axis and button IDs as reported by the system.

First, you'll need to remove the mapping you added. Then, go into the game's config menu and press each button and axis, and let me know the numbers you see for each button / axis.

DPads and Triggers will probably not respond without a mapping, but you can get the rest of the IDs.
User avatar
KoopaTheQuick
Posts: 5
Joined: Fri Jul 27, 2018 10:17 pm

Re: Android PS4 Controller

Unread post by KoopaTheQuick » Sun Aug 05, 2018 4:12 am

Huki wrote:
Sat Aug 04, 2018 7:24 am
Vyrium wrote:
Fri Aug 03, 2018 11:21 pm
Also is there a way to figure out which button is which in the profile.ini config apart from trial and error? Sometimes configuring in game can cause the right axis to be assigned which breaks the menu and I can't assign anything anymore
Do you mean the right axis is detected as always pressed? Is the axis broken? It used to be a problem with triggers before GameController support was added.
Here's a new build: It disables axes that are detected to be always pressed at the config screen, so it should avoid messing up the menu.
rvgl_android_controller_test2.apk
Vyrium wrote:
Fri Aug 03, 2018 11:21 pm
Good news is that I can turn with the dpad :D but using that mapping takes away the use of the L1 and R1 buttons
Ok, that's a good start. Now the mapping has to be updated for your controller. Then I'll see about submitting it upstream so it should work out of the box for anyone with the same controller GUID.

Creating a mapping is simple on Desktop platforms as you have tools available like this: http://www.generalarcade.com/gamepadtool/
In Android it's a bit tricky, so we'll need to manually find your axis and button IDs as reported by the system.

First, you'll need to remove the mapping you added. Then, go into the game's config menu and press each button and axis, and let me know the numbers you see for each button / axis.

DPads and Triggers will probably not respond without a mapping, but you can get the rest of the IDs.
Using the file that you provided with my GUID made it so that everything seemed to work correctly except for the X and O buttons. I was able to map everything except for X in the configure screen, but when I went into a race to test it the O button was accelerating the car even though I mapped it to flip car and X was seemingly doing nothing. Any suggestions? When I try to configure the controller without the file X shows as Button 1 and O just refuses to map so I can't see the number.
User avatar
Huki
Developer
Posts: 88
Joined: Wed Dec 06, 2017 5:54 am
Discord: Huki#1668

Re: Android PS4 Controller

Unread post by Huki » Mon Aug 06, 2018 6:20 am

KoopaTheQuick wrote:
Sun Aug 05, 2018 4:12 am
Using the file that you provided with my GUID made it so that everything seemed to work correctly except for the X and O buttons. I was able to map everything except for X in the configure screen, but when I went into a race to test it the O button was accelerating the car even though I mapped it to flip car and X was seemingly doing nothing. Any suggestions? When I try to configure the controller without the file X shows as Button 1 and O just refuses to map so I can't see the number.
Make sure you're using the latest test build (rvgl_android_controller_test2).

I have some news: I managed to build an interactive controller mapping tool included with SDL2.
Download: rvgl_controllermap_2.0.8.apk

The mapping is saved to profiles/gamecontroller_log.txt in the RVGL folder.

Basic instructions:
Press the buttons on your controller when indicated
(Your controller may look different than the picture)
If you want to correct a mistake, press backspace or the back button on your device
To skip a button, press SPACE or click/touch the screen
You just need to configure your controller with this tool and use the mapping from the log file.
Also post the mapping here.
User avatar
KoopaTheQuick
Posts: 5
Joined: Fri Jul 27, 2018 10:17 pm

Re: Android PS4 Controller

Unread post by KoopaTheQuick » Tue Aug 07, 2018 3:36 am

Huki wrote:
Mon Aug 06, 2018 6:20 am
KoopaTheQuick wrote:
Sun Aug 05, 2018 4:12 am
Using the file that you provided with my GUID made it so that everything seemed to work correctly except for the X and O buttons. I was able to map everything except for X in the configure screen, but when I went into a race to test it the O button was accelerating the car even though I mapped it to flip car and X was seemingly doing nothing. Any suggestions? When I try to configure the controller without the file X shows as Button 1 and O just refuses to map so I can't see the number.
Make sure you're using the latest test build (rvgl_android_controller_test2).

I have some news: I managed to build an interactive controller mapping tool included with SDL2.
Download: rvgl_controllermap_2.0.8.apk

The mapping is saved to profiles/gamecontroller_log.txt in the RVGL folder.

Basic instructions:
Press the buttons on your controller when indicated
(Your controller may look different than the picture)
If you want to correct a mistake, press backspace or the back button on your device
To skip a button, press SPACE or click/touch the screen
You just need to configure your controller with this tool and use the mapping from the log file.
Also post the mapping here.
Thanks for the reply Huki. That test build fails to start after I install the apk. It just says "Unfortunately RVGL has stopped." I tried the mapping app with the most recent stable version and my X button (bottom face button) still refuses to map in the in-game controller configuration screen. Everything else works as expected.

Below is the controller log file output.

There are 2 joysticks attached
Joystick 0: Wireless Controller
axes: 6
balls: 0
hats: 1
buttons: 36
instance id: 0
guid: 30303839663330346632363232623138
VID/PID: 0x0000/0x0000
Joystick 1: Android Accelerometer
axes: 3
balls: 0
hats: 0
buttons: 0
instance id: 1
guid: 416e64726f696420416363656c65726f
VID/PID: 0x0000/0x0000
Watching joystick 0: (Wireless Controller)
Joystick has 6 axes, 1 hats, 0 balls, and 36 buttons


====================================================================================
Press the buttons on your controller when indicated
(Your controller may look different than the picture)
If you want to correct a mistake, press backspace or the back button on your device
To skip a button, press SPACE or click/touch the screen
To exit, press ESC
====================================================================================
Mapping:

30303839663330346632363232623138,Wireless Controller,platform:Android,a:b1,b:b17,x:b0,y:b2,back:b15,guide:b5,start:b16,leftstick:b4,rightstick:b6,leftshoulder:b3,rightshoulder:b18,dpup:h0.1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,leftx:a0,lefty:a1,rightx:a2,righty:a5,lefttrigger:a3,righttrigger:a4,
User avatar
Vyrium
Posts: 6
Joined: Tue Jul 31, 2018 9:29 am

Re: Android PS4 Controller

Unread post by Vyrium » Thu Aug 09, 2018 1:40 am

Huki wrote:
Mon Aug 06, 2018 6:20 am
KoopaTheQuick wrote:
Sun Aug 05, 2018 4:12 am
Using the file that you provided with my GUID made it so that everything seemed to work correctly except for the X and O buttons. I was able to map everything except for X in the configure screen, but when I went into a race to test it the O button was accelerating the car even though I mapped it to flip car and X was seemingly doing nothing. Any suggestions? When I try to configure the controller without the file X shows as Button 1 and O just refuses to map so I can't see the number.
Make sure you're using the latest test build (rvgl_android_controller_test2).

I have some news: I managed to build an interactive controller mapping tool included with SDL2.
Download: rvgl_controllermap_2.0.8.apk

The mapping is saved to profiles/gamecontroller_log.txt in the RVGL folder.

Basic instructions:
Press the buttons on your controller when indicated
(Your controller may look different than the picture)
If you want to correct a mistake, press backspace or the back button on your device
To skip a button, press SPACE or click/touch the screen
You just need to configure your controller with this tool and use the mapping from the log file.
Also post the mapping here.
Okay I installed the test apk, as well as installed and ran the mapping tool to obtain this

Code: Select all

There are 2 joysticks attached
Joystick 0: Sony Computer Entertainment Wireless Controller
axes: 6
balls: 0
hats: 1
buttons: 36
instance id: 0
guid: 38393161636261653636653532386639
VID/PID: 0x0000/0x0000
Joystick 1: Android Accelerometer
axes: 3
balls: 0
hats: 0
buttons: 0
instance id: 1
guid: 416e64726f696420416363656c65726f
VID/PID: 0x0000/0x0000
Watching joystick 0: (Sony Computer Entertainment Wireless Controller)
Joystick has 6 axes, 1 hats, 0 balls, and 36 buttons


====================================================================================
Press the buttons on your controller when indicated
(Your controller may look different than the picture)
If you want to correct a mistake, press backspace or the back button on your device
To skip a button, press SPACE or click/touch the screen
To exit, press ESC
====================================================================================
Mapping:

38393161636261653636653532386639,Sony Computer Entertainment Wireless Controller,platform:Android,a:b0,b:b1,x:b2,y:b3,back:b4,start:b6,leftstick:b7,rightstick:b8,leftshoulder:b9,rightshoulder:b10,dpup:h0.1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:a4,righttrigger:a5,
I then put the mapping into the android part of gamecontrollerdb.txt

I did also appear to have trouble mapping the cross button on the controller however by going into the profile.ini and changing the control setup manually I was able to assign cross to accelerate as I wanted; so now everything appears to work with functional dpad on menus and in-game which is great thanks for the help.

My controller setup for reference Koopa

Code: Select all

[Controller1]
Joystick = 0
NonLinearSteering = 1
SteeringDeadzone = 10
SteeringRange = 90
ButtonOpacity = 20
KeyLeft = 0x01ff000d
KeyRight = 0x01ff000e
KeyFwd = 0x01ff0000
KeyBack = 0x01ff0002
KeyFire = 0x01ff0001
KeyReset = 0x01ff0003
KeyReposition = 0x01ff0009
KeyHonka = 0x03ff0005
KeyChangeCamera = 0x01ff000a
KeyRearView = 0x03ff0004
KeyPause = 0x01ff0006
In-game
Left = Button Left (DPad Left)
Right = Button Right (DPad Right)
Accelerate = Button A (Cross)
Reverse = Button X (Square)
Fire = Button B (Circle)
Flip Car = Button Y (Triangle)
Reposition = Button Left Shoulder (L1)
Horn = +Axis Right Trigger (R2)
Rear View = +Axis Left Trigger (L2)
Change Camera = Button Right Shoulder (R1)
Pause = Button Start (Options)
User avatar
KoopaTheQuick
Posts: 5
Joined: Fri Jul 27, 2018 10:17 pm

Re: Android PS4 Controller

Unread post by KoopaTheQuick » Thu Aug 09, 2018 3:17 am

Vyrium wrote:
Thu Aug 09, 2018 1:40 am
Huki wrote:
Mon Aug 06, 2018 6:20 am
KoopaTheQuick wrote:
Sun Aug 05, 2018 4:12 am
Using the file that you provided with my GUID made it so that everything seemed to work correctly except for the X and O buttons. I was able to map everything except for X in the configure screen, but when I went into a race to test it the O button was accelerating the car even though I mapped it to flip car and X was seemingly doing nothing. Any suggestions? When I try to configure the controller without the file X shows as Button 1 and O just refuses to map so I can't see the number.
Make sure you're using the latest test build (rvgl_android_controller_test2).

I have some news: I managed to build an interactive controller mapping tool included with SDL2.
Download: rvgl_controllermap_2.0.8.apk

The mapping is saved to profiles/gamecontroller_log.txt in the RVGL folder.

Basic instructions:
Press the buttons on your controller when indicated
(Your controller may look different than the picture)
If you want to correct a mistake, press backspace or the back button on your device
To skip a button, press SPACE or click/touch the screen
You just need to configure your controller with this tool and use the mapping from the log file.
Also post the mapping here.
Okay I installed the test apk, as well as installed and ran the mapping tool to obtain this

Code: Select all

There are 2 joysticks attached
Joystick 0: Sony Computer Entertainment Wireless Controller
axes: 6
balls: 0
hats: 1
buttons: 36
instance id: 0
guid: 38393161636261653636653532386639
VID/PID: 0x0000/0x0000
Joystick 1: Android Accelerometer
axes: 3
balls: 0
hats: 0
buttons: 0
instance id: 1
guid: 416e64726f696420416363656c65726f
VID/PID: 0x0000/0x0000
Watching joystick 0: (Sony Computer Entertainment Wireless Controller)
Joystick has 6 axes, 1 hats, 0 balls, and 36 buttons


====================================================================================
Press the buttons on your controller when indicated
(Your controller may look different than the picture)
If you want to correct a mistake, press backspace or the back button on your device
To skip a button, press SPACE or click/touch the screen
To exit, press ESC
====================================================================================
Mapping:

38393161636261653636653532386639,Sony Computer Entertainment Wireless Controller,platform:Android,a:b0,b:b1,x:b2,y:b3,back:b4,start:b6,leftstick:b7,rightstick:b8,leftshoulder:b9,rightshoulder:b10,dpup:h0.1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:a4,righttrigger:a5,
I then put the mapping into the android part of gamecontrollerdb.txt

I did also appear to have trouble mapping the cross button on the controller however by going into the profile.ini and changing the control setup manually I was able to assign cross to accelerate as I wanted; so now everything appears to work with functional dpad on menus and in-game which is great thanks for the help.

My controller setup for reference Koopa

Code: Select all

[Controller1]
Joystick = 0
NonLinearSteering = 1
SteeringDeadzone = 10
SteeringRange = 90
ButtonOpacity = 20
KeyLeft = 0x01ff000d
KeyRight = 0x01ff000e
KeyFwd = 0x01ff0000
KeyBack = 0x01ff0002
KeyFire = 0x01ff0001
KeyReset = 0x01ff0003
KeyReposition = 0x01ff0009
KeyHonka = 0x03ff0005
KeyChangeCamera = 0x01ff000a
KeyRearView = 0x03ff0004
KeyPause = 0x01ff0006
In-game
Left = Button Left (DPad Left)
Right = Button Right (DPad Right)
Accelerate = Button A (Cross)
Reverse = Button X (Square)
Fire = Button B (Circle)
Flip Car = Button Y (Triangle)
Reposition = Button Left Shoulder (L1)
Horn = +Axis Right Trigger (R2)
Rear View = +Axis Left Trigger (L2)
Change Camera = Button Right Shoulder (R1)
Pause = Button Start (Options)
I guess I overlooked that part of your response when reading through. I fixed mine the same way. Out of the box support would be great but that inability to map Button A in-game needs some kind of special fix probably. Thanks Huki and Vyrium.
User avatar
Huki
Developer
Posts: 88
Joined: Wed Dec 06, 2017 5:54 am
Discord: Huki#1668

Re: Android PS4 Controller

Unread post by Huki » Sun Aug 12, 2018 10:53 am

KoopaTheQuick wrote:
Tue Aug 07, 2018 3:36 am
Thanks for the reply Huki. That test build fails to start after I install the apk. It just says "Unfortunately RVGL has stopped." I tried the mapping app with the most recent stable version and my X button (bottom face button) still refuses to map in the in-game controller configuration screen. Everything else works as expected.
The test build was only built for 32-bit armv7 architecture. Possibly your phone didn't support it.

The bottom face button (Button A in-game) not mappable was a bug in Android RVGL. I fixed it now.
I'm uploading the fixed build, this time for all architectures.
rvgl_android_controller_test3.apk

Changes:
- Fixes glitches configuring controller buttons on Android.
Post Reply