Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Joystick]Problème avec Visual Boy Advance (résolu)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
Steelskin
Tux's lil' helper
Tux's lil' helper


Joined: 02 May 2005
Posts: 105

PostPosted: Mon May 02, 2005 8:05 pm    Post subject: [Joystick]Problème avec Visual Boy Advance (résolu) Reply with quote

Bonjour,

L'émulateur Visual Boy Advance semble ne pas reconnaître (ne plus reconnaître, plus exactement) mon joystick, pourtant, les modules nécessaires sont installés et chargés. De plus, le joystick marche parfaitement avec ZSNES et jscalibrator. Bref, je donne ma langue au chat.

Pour info, c'est une Guillemot Dual Analog Gamepad, et mon fichier de config de VBA est :
Code:
# All numeric values are in hexadecimal
# Use TAB or EQUAL sign to separate name from value

#
# 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).
#

Joy0_Left=1000
Joy0_Right=1001
Joy0_Up=1002
Joy0_Down=1003
Joy0_A=1087
Joy0_B=1084
Joy0_L=1080
Joy0_R=1082
Joy0_Start=108b
Joy0_Select=108a
Joy0_Speed=108c
#Joy0_Capture=1088

# 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)

# 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=0104
Motion_Right=0106
Motion_Up=0108
Motion_Down=0102

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

# 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=1

# Disables MMX support
disableMMX=0

# 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, 7=AdvanceMAME Scale2x, 8=Simple 2x,
# 9=Bilinear, A=Bilinear Plus, B=hq2x, C=lq2x
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, 5=SGB2
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=/home/fab/.vba/save/

# Screen shot Capture directory
captureDir=/home/fab/.vba/save/

# Battery directory
batteryDir=/home/fab/.vba/save/

# Screen capture format
# 0=PNG, anything else for BMP
captureFormat=0

# Sound quality
# 1=44 Khz, 2=22Khz, 4=11Khz
soundQuality=2

# 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 (not supported anymore)
# 0=false, anything else for true
# removeIntros=0

# Save Type
# 0=automatic, 1=EEPROM, 2=SRAM, 3=Flash, 4=EEPROM+Sensor, 5=NONE
saveType=0

# Flash size
# 0=64K Flash, 1=128K Flash
flashSize=0

# Sound volume
# 0=1x, 1=2x, 2=3x, 3=4x
soundVolume=0

# Interframe blending
# 0=none, 1=motion blur, 2=smart
ifbType=0

# Show emulation speed
# 0=none, 1=percentage, 2=detailed
showSpeed=2

# Show speed in transparent mode
# 0=normal, anything else for transparent
showSpeedTransparent=1

# Enable/Disable auto frameskip
# 0=disable, anything else to enable
autoFrameSkip=0

# Sets the desired throttle
# 0=disable, 5...1000 valid throttle speeds
# throttle=100

# Pauses the emulator when the window is inactive
# 0=disable, anything else to enable
pauseWhenInactive=0

# Enables AGBPrint support
# 0=disable, anything else to enable
agbPrint=1

# Enables GBA RTC support
# 0=disable, anything else to enable
rtcEnabled=0

# Sound OFF flag
# 0=sound on, anything else turns off sound
soundOff=0

# Sound Enable
# Controls which channels are enabled: (add values)
#   1 - Channel 1
#   2 - Channel 2
#   4 - Channel 3
#   8 - Channel 4
# 100 - DirectSound A
# 200 - DirectSound B
# 30f=all enabled, 0=mute all
soundEnable=30f

# Controls automatic SGB border
# 0=disable, anything else enables automatic SGB border display
borderAutomatic=0

# Skip bios code
# 0=disable, anything else skips BIOS code
skipBios=0

# The interval between the rewind saves
# Minimum of 0 seconds to disable rewind support,
# Maximum of 60 minutes. Value in seconds (hexadecimal numbers)
rewindTimer=0

# Enable enhanced save type detection
# 0=disable, anything else to enable (no longer used)
#enhancedDetection=1

_________________
Kupo !


Last edited by Steelskin on Mon May 02, 2005 8:51 pm; edited 1 time in total
Back to top
View user's profile Send private message
Enlight
Advocate
Advocate


Joined: 28 Oct 2004
Posts: 3519
Location: Alsace (France)

PostPosted: Mon May 02, 2005 8:28 pm    Post subject: Reply with quote

Je crois avoir lu quelque part que maintenant le kernel à un use flag qui applique un patch pour c genre de trucs, mais je ne me rappele pas si c'était les gentoo-sources ou ac-sources... désolé mais je ne me rappele pas de plus.

J'éspère que ça te donnera une piste.

edit : Ouh là là mais j'étais 200% off moi, faut qu'j'apprenne à lire! Sorry!


Last edited by Enlight on Mon May 02, 2005 9:06 pm; edited 1 time in total
Back to top
View user's profile Send private message
Steelskin
Tux's lil' helper
Tux's lil' helper


Joined: 02 May 2005
Posts: 105

PostPosted: Mon May 02, 2005 8:42 pm    Post subject: Reply with quote

Pour une raison qui m'échappe complètement, en modifiant les lignes :
Code:
Joy0_Left=1000
Joy0_Right=1001
Joy0_Up=1002
Joy0_Down=1003
Joy0_A=1087
Joy0_B=1084
Joy0_L=1080
Joy0_R=1082
Joy0_Start=108b
Joy0_Select=108a
Joy0_Speed=108c
#Joy0_Capture=1088

par :
Code:
Joy0_Left=2000
Joy0_Right=2001
Joy0_Up=2002
Joy0_Down=2003
Joy0_A=2087
Joy0_B=2084
Joy0_L=2080
Joy0_R=2082
Joy0_Start=208b
Joy0_Select=208a
Joy0_Speed=208c
#Joy0_Capture=2088

cela marche parfaitement, alors qu'il est écrit :
Code:
# 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:

VBA devrait donc chercher dans /dev/js1 avec la nouvelle config et mon joystick est dans /dev/js0, étrange...

Bref, désolé de vous avoir dérangés et merci à Enlight !
_________________
Kupo !
Back to top
View user's profile Send private message
zdra
Veteran
Veteran


Joined: 30 Nov 2003
Posts: 1693
Location: Bruxelles, Belgique

PostPosted: Tue May 03, 2005 8:29 am    Post subject: Reply with quote

Tent qu'on parle de gameboy... Si qqn savait faire une ebuild pour gnomeboyadvance ce serait cool:
https://bugs.gentoo.org/show_bug.cgi?id=51907

C'est un copain qui maintient, mais il fait pas gentoo, et moi je sais pas du tout comment on fait les ebuild avec des clef gconf à mettre etc... fin je vais peut-etre faire un ebuild assé bourin qui fait tout en bash sans utiliser les eclass que je connais pas et dont j'ai pas le temps d'apprendre le mécanisme pour l'instant.
Back to top
View user's profile Send private message
Steelskin
Tux's lil' helper
Tux's lil' helper


Joined: 02 May 2005
Posts: 105

PostPosted: Tue May 03, 2005 9:28 am    Post subject: Reply with quote

USE="gtk" emerge visualboyadvance, si ma mémoire est bonne. Ca crée un binaire gvba.

Par contre, je n'aime pas beaucoup parce qu'on ne peut pas mettre en plein écran...
_________________
Kupo !
Back to top
View user's profile Send private message
Adrien
Advocate
Advocate


Joined: 13 Jul 2004
Posts: 2326
Location: Bretagne

PostPosted: Tue May 03, 2005 10:24 am    Post subject: Reply with quote

Juste une question bête (j'ai jamais eu le courage de configurer proprement mon joystick pour les émulateurs, ça a l'air relou....:?) : Où se trouve le fichier de config de VBA??? :D
Back to top
View user's profile Send private message
Adrien
Advocate
Advocate


Joined: 13 Jul 2004
Posts: 2326
Location: Bretagne

PostPosted: Tue May 03, 2005 10:28 am    Post subject: Reply with quote

zdra wrote:
Tent qu'on parle de gameboy... Si qqn savait faire une ebuild pour gnomeboyadvance ce serait cool:
https://bugs.gentoo.org/show_bug.cgi?id=51907

Pourquoi tu veux faire un ebuild? Il est sur mon système est je l'ai chopé dans....portage! :P
Back to top
View user's profile Send private message
Steelskin
Tux's lil' helper
Tux's lil' helper


Joined: 02 May 2005
Posts: 105

PostPosted: Tue May 03, 2005 11:05 am    Post subject: Reply with quote

Adrien wrote:
Juste une question bête (j'ai jamais eu le courage de configurer proprement mon joystick pour les émulateurs, ça a l'air relou....:?) : Où se trouve le fichier de config de VBA??? :D

Dans le répertoire HOME, tout simplement ! C'est le fichier VisualBoyAdvance.cfg.

Reprends le mien, et adapte-le si tu veux !:wink:
_________________
Kupo !
Back to top
View user's profile Send private message
Adrien
Advocate
Advocate


Joined: 13 Jul 2004
Posts: 2326
Location: Bretagne

PostPosted: Tue May 03, 2005 11:10 am    Post subject: Reply with quote

Merci beaucoup! :)
Back to top
View user's profile Send private message
zdra
Veteran
Veteran


Joined: 30 Nov 2003
Posts: 1693
Location: Bruxelles, Belgique

PostPosted: Tue May 03, 2005 12:07 pm    Post subject: Reply with quote

Adrien wrote:

Pourquoi tu veux faire un ebuild? Il est sur mon système est je l'ai chopé dans....portage! :P

il y a la version 0.1 dans portage... le projet en est à la version 0.4 ;)
Back to top
View user's profile Send private message
Adrien
Advocate
Advocate


Joined: 13 Jul 2004
Posts: 2326
Location: Bretagne

PostPosted: Tue May 03, 2005 12:24 pm    Post subject: Reply with quote

zdra wrote:
Adrien wrote:

Pourquoi tu veux faire un ebuild? Il est sur mon système est je l'ai chopé dans....portage! :P

il y a la version 0.1 dans portage... le projet en est à la version 0.4 ;)

Ah oui!! :oops: Dans ce cas, ça m'intéresse aussi :) Mais je sais pas faire les ebuild .... :(
Back to top
View user's profile Send private message
Steelskin
Tux's lil' helper
Tux's lil' helper


Joined: 02 May 2005
Posts: 105

PostPosted: Tue May 03, 2005 12:31 pm    Post subject: Reply with quote

Tout en parlant de ça, les versions WIP de Zsnes ne sont pas incluses dans portage. :(
Et il y en a déjà eu une dizaine depuis la dernière version stable.

Mais je ne sais pas non plus faire les ebuilds...
_________________
Kupo !
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum