Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: RPI & Xin Mo phone help?  (Read 3281 times)

0 Members and 1 Guest are viewing this topic.

mwhitney

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 129
  • Last login:December 06, 2017, 10:30:20 pm
  • I want to build my own arcade controls!
    • Michael Whitney - Designer. Maker. Builder.
RPI & Xin Mo phone help?
« on: August 02, 2017, 12:33:22 am »
Hey guys - struggling here.

I had a mock setup (joystick, buttons, latest RPI, XinMo 2-player) all working.

My build is now basically complete and I'm trying to get the controls mapped out but having issues. The joystick works to navigate within RetroPi menus but the buttons etc. aren't working in the games.

Here's what I've done:

1) From the Emulation Station launch, I hit F4
2) Entered: rm /home/pi/.emulationstation/es_input.cfg
3) Entered: emulationstation to clear and return to the main menu and get the prompt to configure buttons etc.

4) Press and hold a button to get into the config setup


Here are my buttons:



Here is my proposed layout:

P1 - Start
P2 - Select
Three white buttons left to right: A-B-X

In the confit screen, top to bottom I set it up as follows:

D-Pad Up - Joystick up
D-Pad Down - Joystick down
D-Pad Left - JS L
D-Pad Right - JS R

Start - P1
Select - P2
A- White button 1 (axis 0+)
B- White button 2 (axis 0-)
X- White button 3 (axis 1+)
Y - Yellow button (axis 1-)

I've then skipped the following:

Left Shoulder
Right Shoulder
Left Trigger
Right Trigger
Left Thumb
Right Thumb
Left Analog Up
Left Analog Down
Left Analog Left
Left Analog Right
Right Analog Up
Right Analog Down
Right Analog Right
Right Analog Left

OK button - NOTE the only button that will activate the OK button is the first white button 'A'. I'm not even sure if that's saving what I've entered or leaving the menu, but no other buttons have any effect.

From here, I can go to the Atari 2600 menu, for example, hit the same white button 'A' to select the Atari menu, joystick scrolls to choose a game, button 'A' selects the game and loads, but at title screen, none of the buttons will start the game.

I then have to use the keyboard to ESC back to the main menu.

I've tried this config about 6 times trying to see if I've overlooked something but just can't figure it out.

My Xin Mo is wired as follows on the P1 side:

If someone is willing to chat on the phone or via skype, I'd be extremely grateful.

Thanks for any help.
Mike

mwhitney

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 129
  • Last login:December 06, 2017, 10:30:20 pm
  • I want to build my own arcade controls!
    • Michael Whitney - Designer. Maker. Builder.
Re: RPI & Xin Mo phone help?
« Reply #1 on: August 02, 2017, 12:37:47 am »
I should add -

It's my understanding that the pin location on the Xin Mo is irrelevant as the pin locations are defined by the mapping carried out in the retropie config.

Is this accurate?

Titchgamer

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4222
  • Last login:December 17, 2023, 08:05:48 am
  • I have a gaming addiction.....
Re: RPI & Xin Mo phone help?
« Reply #2 on: August 02, 2017, 03:57:43 am »
Have you tried just configuring them via the built in gui menu in emulation station?

That should set all buttons for all emus.

1500points

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 550
  • Last login:November 20, 2018, 01:44:12 pm
    • How to succeed at Robotron
Re: RPI & Xin Mo phone help?
« Reply #3 on: August 02, 2017, 10:24:49 am »
I had trouble with the joystick connections being understood by retropie consoles.  Move everything over to the other side so you are using the buttons.  And avoid the 4conn series for the joysticks


Sent from my iPhone using Tapatalk

mwhitney

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 129
  • Last login:December 06, 2017, 10:30:20 pm
  • I want to build my own arcade controls!
    • Michael Whitney - Designer. Maker. Builder.
Re: RPI & Xin Mo phone help?
« Reply #4 on: August 02, 2017, 12:04:23 pm »
Have you tried just configuring them via the built in gui menu in emulation station?

That should set all buttons for all emus.

Hey Titch - If I'm understanding correctly, that is what I did. Funny thing is, with my rough setup (plywood CP and no cab as a test run many months ago), I did the exact same process and all was working well.

As of late, I just ran that command line to clear any previous controller settings and bring up the configuration screen when ES loads.

The notes I made above RE 'axis -1' etc. were just the values that ES assigned to each button / joystick movement.

I'm at a loss. I'm hoping someone can help me go through command lines (if that's the right terminology) to make sure all is reading as it should and potentially see where any bugs are.

I don't know if this helps, but I followed some instructions a while back to add a snippet of code to allow the XinMo to run as a 2-player but have since decided I only need 1 player. Not sure if this would be affecting anything.

Is there a hard reset / Ctrl Alt Delete function ;)

Thanks for chiming in.

mwhitney

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 129
  • Last login:December 06, 2017, 10:30:20 pm
  • I want to build my own arcade controls!
    • Michael Whitney - Designer. Maker. Builder.
Re: RPI & Xin Mo phone help?
« Reply #5 on: August 02, 2017, 12:05:30 pm »
I had trouble with the joystick connections being understood by retropie consoles.  Move everything over to the other side so you are using the buttons.  And avoid the 4conn series for the joysticks


Sent from my iPhone using Tapatalk

Thanks 1500P - Sorry to sound daft... what do you mean by 'move everything over to the other side? I'm pretty green with this stuff. Cheers.

Titchgamer

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4222
  • Last login:December 17, 2023, 08:05:48 am
  • I have a gaming addiction.....
Re: RPI & Xin Mo phone help?
« Reply #6 on: August 02, 2017, 12:14:30 pm »
No command line needed.

Just load up emulation station and press the button for the menu (sorry cant remember which) then there is a option to configure controller.

Follow the on screen prompts and away you go :)

mwhitney

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 129
  • Last login:December 06, 2017, 10:30:20 pm
  • I want to build my own arcade controls!
    • Michael Whitney - Designer. Maker. Builder.
Re: RPI & Xin Mo phone help?
« Reply #7 on: August 02, 2017, 01:35:02 pm »
No command line needed.

Just load up emulation station and press the button for the menu (sorry cant remember which) then there is a option to configure controller.

Follow the on screen prompts and away you go :)

One would think it would be that* easy (and it was when I set things up the first time).

I only did the command line thing to clear previous CP settings. I've also tried just loading it from the main ES screen by hitting a button and opening up the menu as you mention.

Both methods yield the same results; buttons aren't working in the games themselves. In other words, I can use the joystick to slide the menu for the different emulators, I can select a game within an emulator via a button, and load it, but once the game has loaded, none of the buttons will start the game.  :banghead:

Titchgamer

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4222
  • Last login:December 17, 2023, 08:05:48 am
  • I have a gaming addiction.....
Re: RPI & Xin Mo phone help?
« Reply #8 on: August 02, 2017, 03:34:03 pm »
In that case I am wondering if you have created extra config files.

If memory serves it operates a hierarchy structure where by the defaults you set in ES can be overridden on a emu by emu basis. They can then be overridden on a game by game basis.

You will have to look on their wiki for the names and locations of these configs but may be worth looking into.

I usually do things like that over the network on a laptop.

Makes it much easier doing it through windows ;)

mwhitney

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 129
  • Last login:December 06, 2017, 10:30:20 pm
  • I want to build my own arcade controls!
    • Michael Whitney - Designer. Maker. Builder.
Re: RPI & Xin Mo phone help?
« Reply #9 on: August 02, 2017, 07:30:46 pm »
Thanks Titch -

Sorry for the '101' questions, but how would I check that over a network?

I did have wifi working periodically but my FTP program wouldn't log-in (another headache).

I'm on a mac.

Is there a way to just reset the Pi to factory? That seems like the easiest  ???

Titchgamer

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4222
  • Last login:December 17, 2023, 08:05:48 am
  • I have a gaming addiction.....
Re: RPI & Xin Mo phone help?
« Reply #10 on: August 02, 2017, 07:36:05 pm »
No idea about macs so cant help there.

But on windows I use cute FTP or Filezilla.

As for reseting, The Pi itself stores no settings everything is on the micro SD so to start fresh just format it and reinstall retro pie.

mwhitney

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 129
  • Last login:December 06, 2017, 10:30:20 pm
  • I want to build my own arcade controls!
    • Michael Whitney - Designer. Maker. Builder.
Re: RPI & Xin Mo phone help?
« Reply #11 on: August 02, 2017, 07:41:37 pm »
Alright - I'm running Filezilla as well. If I can log in, what should I be looking for. I think this should be the first step - if unsuccessful, maybe I'll wipe things clean.

Thanks again.

mwhitney

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 129
  • Last login:December 06, 2017, 10:30:20 pm
  • I want to build my own arcade controls!
    • Michael Whitney - Designer. Maker. Builder.
Re: RPI & Xin Mo phone help?
« Reply #12 on: August 03, 2017, 01:00:13 am »
UPDATE -
out of sheer frustration, I wiped my miniSD and re-flashed the Pi image. After plugging back in, all seems to be working well. I re-mapped the controls, installed a few simple 2600 games and all is working as it should!

Cheers!

Titchgamer

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4222
  • Last login:December 17, 2023, 08:05:48 am
  • I have a gaming addiction.....
Re: RPI & Xin Mo phone help?
« Reply #13 on: August 03, 2017, 03:46:50 am »
Glad you are sorted :)