RetroPad Editor - create and edit onscreen gamepads

@Valent-in Thank you for the RetroPad Editor, it became really easy for people like me, that does’t understand programimg so much to personalize the overlays.

But I’m struggling with fitting the overlay to the game display. Is there any code or something I can do to this became automatically? Like, if i change cellphones with different display or change the game aspect ratio the overlay fit perfectly?

What I did was, taking a screenshot from the game, both portrait and landscape, with core provided aspect ratio, and work with the image on the photoshop. But just fit perfectly on my old phone, the other with higher resolution became stretched and I had to spend a lot of time trying to fit manually on retroarch.

I want to share my overlays with the community but first I need to make this work, here’s an exemple (the art wasn’t made by me):

Hi!

There is “auto scale overlay” in RA settings - check it to keep aspect ratio. This will add black bars if screen has another aspect ratio than overlay target. Also if background image set as overlay0_overlay=img.png in config it will not fit button positions. Solution is to create button with null command and assign background image to it.

You may use this “unfunctional button” hack to assemble background from different image parts so it will fill screen on different aspect ratios (look at neo-retropad - it’s dpad sticks to left side in landscape when autoscale enabled)

1 Like

@Valent-in Nice, I hadn’t thought of that, I’ll try it, thanks Valent-in!

God, I’ll have to do it all over again :cold_sweat:

Valent-in, I sent you a private msg asking for more help, I don’t want to share the overlays here before finishing.

Did you mean it shifts elements to sides while you want to keep them centered in landscape?

add this to landscape overlay: block_x_separation = true

or full line if you use text editor: overlay2_block_x_separation = true

Main purpose of this parameters to block manual separation adjustment. In portrait mode block_y_separation is always true for auto-scaling. Value from config using only to block manual settings.

On version 1.16 new parameters should work also in portrait (they has opposite effect - if true shift to sides is allowed) overlayXX_auto_x_separation = true overlayXX_auto_y_separation = true

2 Likes

Hello… Could someone please explain the step-by-step process for me to edit the neo-retropad? I would like to change the position and size of the buttons, but I noticed that when importing neo-retropad.cfg the other overlays are mixed up and when I save and load them in retroarch it doesn’t work correctly… Thank you in advance.

Hi. What does mean “mixed up”? Image names from neo-retropad does not clash with default (flat) button set, so buttons should be without any images if only .cfg file imported. Mixed buttons may be result of wrong image set imported.

Also neo-retropad uses relative paths for image fies png/clear or png/default which is removing by editor, so you should place exported .cfg directly in folder with images.

Notice that editor does not validate imported files. If your config is edited manually and already has some errors - you may got corrupted file in result.

Hi! How to do it - hold L2+R2. I’m writing in “Command” = l2|r2, but how do I set “hold”?

This is not possible. RA does not support button toggle.

Hi, If someone can help me. I want to map a virtual button to pause the game. in command I set <toggle_pause> and choose a image.png. When I load the overlay on retroarch the button appears onscreen but if I press it nothing happens. What am I doing wrong? I just want to be able to pause the game during game cutscenes.

It should be pause_toggle

Sorry, I am a newbie,Every adjustment is not very accurate in the editor.how can I accurately determine the X or Y axis coordinate position of the image? thank you!

Sorry to bother you, I finally figured it out. It turns out that the coordinates are confirmed by the center point. I always thought it was the upper left point. :sweat_smile:

Hey @Valent-in, Is there a way to turn off the vibration for some buttons? I use buttons for some background images to build the overlay but I want just the real buttons used to play to vibrate not the whole thing.

Cheers.

Use reach_x = 0 for those buttons.

1 Like

Thanks for the tip, it worked.

1 Like

Hey there, is there a way to use RetroPad editor to set a hotkey for both keyboard and controller that can switch overlays? I noticed that RetroArch doesn’t have a built-in hotkey for this. It would be really cool to be able to cycle through overlays without having to dive into the menu every time.

Do you mean switch through different .cfg files? I do not think this is possible.

1 Like

Never mind. I’ll just create a dropdown menu to switch between my preferred overlays. Thank you for your time.

Cheers.