Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Change Settings in Linux?
#1
I just installed the Linux version, and there doesn't seem to be any kind of GUI; just the "mgba" command to run with the file name of the ROM. How do I program in my controller? I tried running the Windows version through Wine, but it crashed when I tried to load up a ROM. Is there at least a list of what keys are bound to what buttons on the console?
Reply

#2
How did you install it? That's the SDL UI, which you can't reprogram on its own without hand configuring it. mgba-qt is the version that's the normal GUI.
Reply

#3
Oh, I just downloaded the package that had the three *.deb files and installed them all. Nothing new showed up on my Applications bar, so I just ran "mgba" from the terminal, and it gave me options for command-line use.

Aha, I tried "mgba-qt" and that brought up an actual window. Thanks!
Reply

#4
(01-01-2017, 04:02 AM)endrift Wrote: How did you install it? That's the SDL UI, which you can't reprogram on its own without hand configuring it. mgba-qt is the version that's the normal GUI.

If we did want to edit the settings how would we, the man pages mentions something about using ~/.config/mgba/config.ini however they provide no information on what to actually put in that file in order to change anything.
Reply

#5
Yep, I was thinking about that earlier. Not sure how to rectify that, because it would belong in manual section 5, but uh, good luck adding something called config.ini to man 5.
Reply

#6
(02-09-2017, 09:16 PM)endrift Wrote: Yep, I was thinking about that earlier. Not sure how to rectify that, because it would belong in manual section 5, but uh, good luck adding something called config.ini to man 5.

Can you maybe give me a copy of a complete config.ini for mgba so I have something to work with for now at least, I also have no idea how you'd go about adding it to the man pages
Reply

#7
Here's an example of my config file:

Code:
[input.QT_K]
keyL=65
keyR=83
keyStart=16777220
keyDown=16777237
keyLeft=16777234
keyB=90
keyUp=16777235
keyA=88
keyRight=16777236
keySelect=16777219

[ports.qt]
width=960
lockAspectRatio=0
useBios=0
audioBuffers=512
volume=256
rewindBufferInterval=5
fastForwardRatio=-1
savestatePath=
screenshotPath=
sampleRate=44100
mute=0
rewindBufferCapacity=99
allowOpposingDirections=0
suspendScreensaver=1
idleOptimization=remove
patchPath=
bios=/Users/vicki/Documents/Projects/gbajs/roms/bios.bin
audioSync=1
frameskip=0
fpsTarget=60
scaleMultiplier=4
skipBios=1
rewindEnable=1
loadStateExtdata=1
videoSync=0
pauseOnFocusLost=0
height=640
fullscreen=0
resampleVideo=0
saveStateExtdata=7

[input-profile.Xbox 360 Wired Controller]
keyL=4
keyR=5
axisUpAxis=-1
gyroSensitivity=2.2e+09
keyStart=8
keyDown=12
keyLeft=13
axisLeftAxis=-0
keyB=0
keyUp=11
axisRightValue=11876
axisRightAxis=+0
axisUpValue=-13031
axisDownAxis=+1
gyroAxisX=0
tiltAxisX=2
axisDownValue=11545
keyA=1
keyRight=14
gyroAxisY=1
axisLeftValue=-12700
keySelect=9
tiltAxisY=3

[input-profile.SmartJoy PLUS Adapter]
keyL=6
keyR=7
gyroSensitivity=2.2e+09
keyStart=8
keyDown=6
keyLeft=7
keyB=2
keyUp=4
axisRightValue=-12417
axisRightAxis=-0
axisDownAxis=-1
gyroAxisX=0
tiltAxisX=2
axisDownValue=-12417
keyA=1
keyRight=5
gyroAxisY=1
keySelect=9
tiltAxisY=3

[gba.input.SDLB]
keyR=11
keyL=10
axisUpAxis=-1
keyStart=3
keyLeft=7
keyDown=6
axisLeftAxis=-0
keyB=14
keyUp=4
axisRightValue=16384
axisRightAxis=+0
axisUpValue=-12288
axisDownAxis=+1
axisDownValue=16384
keyA=13
keyRight=5
device0=
axisLeftValue=-12288
keySelect=0

[override.AI2E]
hardware=0

[override.A88E]
hardware=64

[gba.input.QT_K]
keyR=83
keyL=65
keyStart=16777220
keyLeft=16777234
keyDown=16777237
keyB=90
keyUp=16777235
keyA=88
keyRight=16777236
keySelect=16777219

[input-profile.PLAYSTATION(R)3 Controller]
keyL=10
keyR=11
axisUpAxis=-1
gyroSensitivity=2.2e+09
keyStart=3
keyDown=6
keyLeft=7
axisLeftAxis=-0
keyB=14
keyUp=4
axisRightValue=12673
axisRightAxis=+0
axisUpValue=-11903
axisDownAxis=+1
gyroAxisX=0
tiltAxisX=2
axisDownValue=12673
keyA=13
keyRight=5
gyroAxisY=1
axisLeftValue=-11903
keySelect=0
tiltAxisY=3

[input.SDLB]
keyL=6
keyR=7
axisUpAxis=-1
gyroSensitivity=2.2e+09
keyStart=8
keyDown=6
keyLeft=7
axisLeftAxis=-0
keyB=2
keyUp=4
axisRightValue=12288
axisRightAxis=+0
axisUpValue=-12288
axisDownAxis=+1
gyroAxisX=0
tiltAxisX=2
axisDownValue=12288
keyA=1
keyRight=5
device0=
gyroAxisY=1
axisLeftValue=-12288
keySelect=9
tiltAxisY=3

It's got some legacy stuff in it though.
Reply

#8
(02-10-2017, 12:44 AM)endrift Wrote: Here's an example of my config file:

Code:
[input.QT_K]
keyL=65
keyR=83
keyStart=16777220
keyDown=16777237
keyLeft=16777234
keyB=90
keyUp=16777235
keyA=88
keyRight=16777236
keySelect=16777219

[ports.qt]
width=960
lockAspectRatio=0
useBios=0
audioBuffers=512
volume=256
rewindBufferInterval=5
fastForwardRatio=-1
savestatePath=
screenshotPath=
sampleRate=44100
mute=0
rewindBufferCapacity=99
allowOpposingDirections=0
suspendScreensaver=1
idleOptimization=remove
patchPath=
bios=/Users/vicki/Documents/Projects/gbajs/roms/bios.bin
audioSync=1
frameskip=0
fpsTarget=60
scaleMultiplier=4
skipBios=1
rewindEnable=1
loadStateExtdata=1
videoSync=0
pauseOnFocusLost=0
height=640
fullscreen=0
resampleVideo=0
saveStateExtdata=7

[input-profile.Xbox 360 Wired Controller]
keyL=4
keyR=5
axisUpAxis=-1
gyroSensitivity=2.2e+09
keyStart=8
keyDown=12
keyLeft=13
axisLeftAxis=-0
keyB=0
keyUp=11
axisRightValue=11876
axisRightAxis=+0
axisUpValue=-13031
axisDownAxis=+1
gyroAxisX=0
tiltAxisX=2
axisDownValue=11545
keyA=1
keyRight=14
gyroAxisY=1
axisLeftValue=-12700
keySelect=9
tiltAxisY=3

[input-profile.SmartJoy PLUS Adapter]
keyL=6
keyR=7
gyroSensitivity=2.2e+09
keyStart=8
keyDown=6
keyLeft=7
keyB=2
keyUp=4
axisRightValue=-12417
axisRightAxis=-0
axisDownAxis=-1
gyroAxisX=0
tiltAxisX=2
axisDownValue=-12417
keyA=1
keyRight=5
gyroAxisY=1
keySelect=9
tiltAxisY=3

[gba.input.SDLB]
keyR=11
keyL=10
axisUpAxis=-1
keyStart=3
keyLeft=7
keyDown=6
axisLeftAxis=-0
keyB=14
keyUp=4
axisRightValue=16384
axisRightAxis=+0
axisUpValue=-12288
axisDownAxis=+1
axisDownValue=16384
keyA=13
keyRight=5
device0=
axisLeftValue=-12288
keySelect=0

[override.AI2E]
hardware=0

[override.A88E]
hardware=64

[gba.input.QT_K]
keyR=83
keyL=65
keyStart=16777220
keyLeft=16777234
keyDown=16777237
keyB=90
keyUp=16777235
keyA=88
keyRight=16777236
keySelect=16777219

[input-profile.PLAYSTATION(R)3 Controller]
keyL=10
keyR=11
axisUpAxis=-1
gyroSensitivity=2.2e+09
keyStart=3
keyDown=6
keyLeft=7
axisLeftAxis=-0
keyB=14
keyUp=4
axisRightValue=12673
axisRightAxis=+0
axisUpValue=-11903
axisDownAxis=+1
gyroAxisX=0
tiltAxisX=2
axisDownValue=12673
keyA=13
keyRight=5
gyroAxisY=1
axisLeftValue=-11903
keySelect=0
tiltAxisY=3

[input.SDLB]
keyL=6
keyR=7
axisUpAxis=-1
gyroSensitivity=2.2e+09
keyStart=8
keyDown=6
keyLeft=7
axisLeftAxis=-0
keyB=2
keyUp=4
axisRightValue=12288
axisRightAxis=+0
axisUpValue=-12288
axisDownAxis=+1
gyroAxisX=0
tiltAxisX=2
axisDownValue=12288
keyA=1
keyRight=5
device0=
gyroAxisY=1
axisLeftValue=-12288
keySelect=9
tiltAxisY=3

It's got some legacy stuff in it though.

I'm guessing [input.SDLB] is going to be what is relevant to me as I'm not using the qt wrapper. Do you have any information on where I can find the values for those codes? Are they SDL Scancodes, Keycodes, or something else entirely?
Reply

#9
SDLB is for controllers (B = buttons). SDLK is for keyboards (K = keyboard). They're scancodes in SDL.
Reply

#10
Oh so it was mgba-qt that pops up a GUI. Thanks for this as I really don't like the x key being mapped as the A button.
Reply



Forum Jump:


Users browsing this thread:
2 Guest(s)

Powered By MyBB, © 2002-2024 Melroy van den Berg.