I don’t have an ipad to test on. Plus, already made most of them I’m happy to provide some more explanation, though, tailored to your needs.
Lets take a look at the psx_dark overlay from the ipad overlay directory:
https://github.com/libretro/common-over … d/psx-dark
This one has two different configurations using the same images. Lets peek into the ‘A’ variant (the author of this one [not me] was nice enough to separate the buttons into sections, which may make it easier to understand):
https://github.com/libretro/common-over … dark_a.cfg
Since what you’re wanting is fairly simple, we won’t worry about what every little thing does. So, you can just skip the ‘options’ section and go straight down to ‘dpad’:
- DPad
overlay0_descs = 16
overlay0_desc0 = "left,0.06375,0.782083333333,radial,0.046875,0.0625"
overlay0_desc0_overlay = ps_left.png
overlay0_desc1 = "right,0.17375,0.782083333333,radial,0.046875,0.0625"
overlay0_desc1_overlay = ps_right.png
overlay0_desc2 = "up,0.11875,0.697083333333,radial,0.046875,0.0625"
overlay0_desc2_overlay = ps_up.png
overlay0_desc3 = "down,0.11875,0.8670833333333,radial,0.046875,0.0625"
overlay0_desc3_overlay = ps_down.png
Now lets break it down: overlay0 means it’s the first screen you see. There are other screens that you can switch to, which are named overlay1, overlay2, etc. but you don’t need them for what you’re planning. overlay0_descs = 16 means there will be 16 buttons on this overlay0 screen.
overlay0_desc0 is your first real button. In quotes, it has the button assignment (left), the normalized x coordinate, the normalized y coordinate, the shape of the button (radial or rect), and then the x and y sizes (divided by 1/2) of the button’s hitbox, respectively. Since you just want to move them around, you only need to worry about these numbers:
overlay0_desc0 = “left,0.06375,0.782083333333,radial,0.046875,0.0625”
Just change those numbers (remember, it’s normalized, so only values between 0.0 and 1.0) to move them. If you are okay with the horizontal position, just leave it the first number alone and only change the second number.
Does that help?