MandrivaUsers.org : Configuring Visual boy advance - MandrivaUsers.org

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Configuring Visual boy advance

#1 User is offline   Gnubie 

  • frequent
  • Group: Members
  • Posts: 155
  • Joined: 30-September 03

Posted 21 October 2003 - 07:59 AM

I really would like to be able to use my joystick instead of the keyboard for this. How do I go about it? I have typed --help and cannot see any option for joystick configuration. :(
0

#2 User is offline   DragonMage 

  • Lazy Mandrake User
  • Group: Members
  • Posts: 2,150
  • Joined: 16-September 02

Posted 21 October 2003 - 03:42 PM

First, check whether the joystick is working in linux. There are few utilities to do so. One that is related to Visualboy advance is the SDL configurator from the download section in Visualboy Advance homepage ( http://vboy.emuhq.com/downloads.shtml ) If you run the program in a console and move your joystick you should see a bunch of numbers. Now create a VisualBoyAdvance.cfg file in your user directory (/home/user). Put the number from the SDL configurator into the joystick direction in which you press the button/keypad.

Anyway, here is my VisualBoyAdvance.cfg file if you need a bit of a reference.
# All numeric values are in hexadecimal



#

# Key configuration (all numbers are in hexadecimal!)

#

# Keys values are in the format YXXX where Y is the device number. 0 means

# keyborad and XXX is the SDL define for the desired key (read SDL_keysym.h).

#

# If Y is greater than 0, it means joystick number Y-1 and it uses the

# following format for XXX:

#

# - if XXX < 20, XXX is the axis number multiplied by 2. An even number means

#   movement to the negative side (on the X axis, it means left). An odd

#   number means movement to the positive side (on the X axis, it mean

#   right). For the Y axis, negative means up and positive means down.

#   X axis is usally axis number 0 and Y is axis number 1.

# - if 20 >= XXX > 30, then XXX is the HAT number multiplied by 4 plus the

#   direction: 0 for up, 1 for down, 2 for right and 3 for left. Example:

#   0021 is HAT 0 down, 0026 is HAT 1 right.

# - if 80 >= XXX > 100, XXX is the joystick button number (XXX-080).

#

# Default key configuration is (value in parenthesis):

#

# Left  Left Arrow  (0114)

# Right  Right Arrow (0113)

# Up  Up Arrow    (0111)

# Down  Down Arrow  (0112)

# A  Z           (007a)

# B  X           (0078)

# L  A           (0061)

# R  S           (0073)

# Start  ENTER       (000d)

# Select	BACKSPACE   (0008)

# Speed up	SPACE       (0020)

# Capture	F12         (0125)

#

Joy0_Left	1000

Joy0_Right	1001

Joy0_Up  1002

Joy0_Down	1003

Joy0_A  1082

Joy0_B  1081

Joy0_L  1084

Joy0_R  1085

Joy0_Start	1089

Joy0_Select	1088

Joy0_Speed	1086

Joy0_Capture	0125



# Motion support keys. Same format as above

#

# Default keys are (value in parenthesis):

#

# Left  Numeric Pad 4 (0104)

# Right  Numeric Pad 6 (0106)

# Up  Numeric Pad 8 (0108)

# Down  Numeric Pad 2 (0102)

#

Motion_Left	1000

Motion_Right	1001

Motion_Up	1002

Motion_Down	1003



# Frame skip setting. Allowed values are from 0 to 5 only.

frameSkip     0



# Gameboy Frame skip setting. Allowed values are from 0 to 5 only.

gbFrameSkip	0



# Video setting. 0=1x, 1=2x, 2=3x, 3=4x.

video  3



# Use fullscreen mode. 0=false, any other value means true

fullScreen     0



# Disables MMX support

disableMMX	1



# Use bios file. 0=false, any other value means true

useBios  0



# Bios file full path and name (ZIP not supported)

biosFile	none



# Filter to use. 0=no filter, 1=TV Mode, 2=2xSaI, 3=Super 2xSaI, 4=Super Eagle

# 5=Pixelate, 6=Motion Blur

filter     3



# Disable status messages. 0=false, any other value means true

disableStatus	0



# Enable Gameboy border. 0=false, any other value means true

borderOn	0



# Gameboy emulator type. 0=automatic, 1=CGB/GBC, 2=SGB, 3=GB, 4=GBA

emulatorType	0



# Enable washed colors. 0=false, any other value means true

colorOption	1



# Directories. Not setting one them makes the file go the rom directory.



# Save state directory

#saveDir	



# Screen shot Capture directory

/home/dmage/dragonmage/gba/



# Battery directory

#batteryDir



# Screen capture format

# 0=PNG, anything else for BMP

captureFormat   0



# Sound quality

# 1=44 Khz, 2=22Khz, 4=11Khz

soundQuality	1



# Sound Echo

# 0=false, anything else for true

soundEcho	0



# Sound Low pass filter

# 0=false, anything else for true

soundLowPass	0



# Sound reverse stereo

# 0=false, anything else for true

soundReverse	0



# Remove GBA intros

# 0=false, anything else for true

removeIntros	0

Registered Linux User #241408

Desktop: Athlon64 3000+ @ 2001 MHz, 1024 MB DDR, GF4 Ti4200, 2x30 GB HD, Posted Image 2006 x86_64 + WinXP Pro
0

#3 User is offline   Gnubie 

  • frequent
  • Group: Members
  • Posts: 155
  • Joined: 30-September 03

Posted 21 October 2003 - 04:09 PM

Thank you.

I also tried to use the windows version of vba in wine, and it worked! :lol:/>
0

#4 User is offline   Revolver 

  • New Here
  • Group: Members
  • Posts: 22
  • Joined: 06-June 03

Posted 25 March 2004 - 04:23 PM

Why use Gnu Linux... if you continue to use windows soft???!!!!!


I have the same problem a time ago and with the help of dragon mage i was able to put it working until now with no problems..vba for gnu linux ofcourse:)
0

#5 User is offline   ShadowFoxLSU 

  • Socratic Wanderer
  • Group: Members
  • Posts: 182
  • Joined: 19-June 03

Posted 26 March 2004 - 11:08 PM

There is a great frontend for visualboy advance called gnomeboyadvance, give it a try
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users