What's new

Input Issues

zer0s

New member
So I just started using Mupen on Ubuntu 8.04. Everything seems to be working great except for some issues I'm having with input. The main issue I'm running into is, when I configure the input plugin I am able to assign buttons from my gamecube controller (which is connected via gamemon usb converter). However, when I start emulation these buttons do not work. Please help.
 

Richard42

Emulator Developer
When configuring the controller, make sure that the box in the upper-left corner which signifies that the N64 controller is 'plugged in' is activated. If this doesn't help you can post the ~/.mupen64plus/blight_input.conf file here.
 
OP
Z

zer0s

New member
Okay so here it is:

Code:
[controller 0]
plugged=1
mempak=0
mouse=0
device=None
DPad R=key( -1 ); button( None ); axis( 8+ ); hat( None , None ); mouse( None )
DPad L=key( -1 ); button( None ); axis( 8+ ); hat( None , None ); mouse( None )
DPad D=key( -1 ); button( None ); axis( 9+ ); hat( None , None ); mouse( None )
DPad U=key( -1 ); button( None ); axis( 9+ ); hat( None , None ); mouse( None )
Start=key( 13 ); button( 7 ); axis( None ); hat( None , None ); mouse( None )
Z Trig=key( -1 ); button( 6 ); axis( None ); hat( None , None ); mouse( None )
B Button=key( -1 ); button( 1 ); axis( None ); hat( None , None ); mouse( None )
A Button=key( -1 ); button( 0 ); axis( None ); hat( None , None ); mouse( None )
C Button R=key( -1 ); button( None ); axis( 2+ ); hat( None , None ); mouse( None )
C Button L=key( -1 ); button( None ); axis( 2+ ); hat( None , None ); mouse( None )
C Button D=key( -1 ); button( None ); axis( 5+ ); hat( None , None ); mouse( None )
C Button U=key( -1 ); button( None ); axis( 5+ ); hat( None , None ); mouse( None )
R Trig=key( -1 ); button( 5 ); axis( None ); hat( None , None ); mouse( None )
L Trig=key( 106 ); button( 4 ); axis( None ); hat( None , None ); mouse( None )
Y Axis=key( -1 , -1 ); button( None , None ); axis( 1 ); hat( None , None , None )
X Axis=key( -1 , -1 ); button( None , None ); axis( 0 ); hat( None , None , None )

[controller 1]
plugged=0
mempak=0
mouse=0
device=None
DPad R=key( -1 ); button( None ); axis( 8+ ); hat( None , None ); mouse( None )
DPad L=key( -1 ); button( None ); axis( 8+ ); hat( None , None ); mouse( None )
DPad D=key( -1 ); button( None ); axis( 9+ ); hat( None , None ); mouse( None )
DPad U=key( -1 ); button( None ); axis( 9+ ); hat( None , None ); mouse( None )
Start=key( -1 ); button( 7 ); axis( None ); hat( None , None ); mouse( None )
Z Trig=key( -1 ); button( 6 ); axis( None ); hat( None , None ); mouse( None )
B Button=key( -1 ); button( 1 ); axis( None ); hat( None , None ); mouse( None )
A Button=key( -1 ); button( 0 ); axis( None ); hat( None , None ); mouse( None )
C Button R=key( -1 ); button( None ); axis( 2+ ); hat( None , None ); mouse( None )
C Button L=key( -1 ); button( None ); axis( 2+ ); hat( None , None ); mouse( None )
C Button D=key( -1 ); button( None ); axis( 5+ ); hat( None , None ); mouse( None )
C Button U=key( -1 ); button( None ); axis( 5+ ); hat( None , None ); mouse( None )
R Trig=key( -1 ); button( 5 ); axis( None ); hat( None , None ); mouse( None )
L Trig=key( -1 ); button( 4 ); axis( None ); hat( None , None ); mouse( None )
Y Axis=key( -1 , -1 ); button( None , None ); axis( 1 ); hat( None , None , None )
X Axis=key( -1 , -1 ); button( None , None ); axis( 0 ); hat( None , None , None )

[controller 2]
plugged=0
mempak=0
mouse=0
device=Keyboard
DPad R=key( 0 ); button( None ); axis( None ); hat( None , None ); mouse( None )
DPad L=key( 0 ); button( None ); axis( None ); hat( None , None ); mouse( None )
DPad D=key( 0 ); button( None ); axis( None ); hat( None , None ); mouse( None )
DPad U=key( 0 ); button( None ); axis( None ); hat( None , None ); mouse( None )
Start=key( 13 ); button( None ); axis( None ); hat( None , None ); mouse( None )
Z Trig=key( 0 ); button( None ); axis( None ); hat( None , None ); mouse( None )
B Button=key( 0 ); button( None ); axis( None ); hat( None , None ); mouse( None )
A Button=key( 0 ); button( None ); axis( None ); hat( None , None ); mouse( None )
C Button R=key( 0 ); button( None ); axis( None ); hat( None , None ); mouse( None )
C Button L=key( 0 ); button( None ); axis( None ); hat( None , None ); mouse( None )
C Button D=key( 0 ); button( None ); axis( None ); hat( None , None ); mouse( None )
C Button U=key( 0 ); button( None ); axis( None ); hat( None , None ); mouse( None )
R Trig=key( 0 ); button( None ); axis( None ); hat( None , None ); mouse( None )
L Trig=key( 0 ); button( None ); axis( None ); hat( None , None ); mouse( None )
Y Axis=key( 0 , 0 ); button( None , None ); axis( None ); hat( None , None , None )
X Axis=key( 0 , 0 ); button( None , None ); axis( None ); hat( None , None , None )

[controller 3]
plugged=0
mempak=0
mouse=0
device=None
DPad R=key( 0 ); button( None ); axis( None ); hat( None , None ); mouse( None )
DPad L=key( 0 ); button( None ); axis( None ); hat( None , None ); mouse( None )
DPad D=key( 0 ); button( None ); axis( None ); hat( None , None ); mouse( None )
DPad U=key( 0 ); button( None ); axis( None ); hat( None , None ); mouse( None )
Start=key( 0 ); button( None ); axis( None ); hat( None , None ); mouse( None )
Z Trig=key( 0 ); button( None ); axis( None ); hat( None , None ); mouse( None )
B Button=key( 0 ); button( None ); axis( None ); hat( None , None ); mouse( None )
A Button=key( 0 ); button( None ); axis( None ); hat( None , None ); mouse( None )
C Button R=key( 0 ); button( None ); axis( None ); hat( None , None ); mouse( None )
C Button L=key( 0 ); button( None ); axis( None ); hat( None , None ); mouse( None )
C Button D=key( 0 ); button( None ); axis( None ); hat( None , None ); mouse( None )
C Button U=key( 0 ); button( None ); axis( None ); hat( None , None ); mouse( None )
R Trig=key( 0 ); button( None ); axis( None ); hat( None , None ); mouse( None )
L Trig=key( 0 ); button( None ); axis( None ); hat( None , None ); mouse( None )
Y Axis=key( 0 , 0 ); button( None , None ); axis( None ); hat( None , None , None )
X Axis=key( 0 , 0 ); button( None , None ); axis( None ); hat( None , None , None )
 

okaygo

Mupen64Plus Dev.
Make sure your device is selected to the Gamecube controller. Check the top right box.

Device: None should say something like Device: Gamepad #1
 
OP
Z

zer0s

New member
Now it just says device=1

For some odd reason if a keyboard assignment is also on that key it accepts it.
 

nmn

Mupen64Plus Dev.
It will accept mapping to both keyboard and joystick for now, sorry about that. To fix it just delete your configuration or manually nullify them.

Selecting your device does not work, even if it only says one? It should. That number is the ID of the SDL Device, if i'm not mistaking, which is what it stores in the blight config AFAIK.
 
OP
Z

zer0s

New member
So I deleted the config and selected device: HID 19fa:8d91(#2) (because this is the only one that responds to the controller) and I still have no luck. It all binds fine but doesn't accept input while running a rom.
 

Richard42

Emulator Developer
Nobody else has reported an issue like this. Are you sure that you're using the blight input plugin and not mupen64 input? Can you run it from the console and paste here all the output when you run a game?
 
OP
Z

zer0s

New member
Uh yeah here it is:
Code:
byteswaping rom...
rom byteswaped
rom loaded successfully
80 37 12 40
ClockRate=f
Version:1449
CRC: ec7011b7 7616d72b
name: THE LEGEND OF ZELDA
Manufacturer: 43000000
Cartridge_ID: 4c5a
Country : United States
size: 4096
PC= 80000400
md5 code:5BD1FE107BF8106B2AB6650ABECD54D6
eeprom type:0
init timer!
memory initialized
[RiceVideo] SSE processing enabled.
[blight's SDL input plugin]: version 0.0.10 initialized.
[RiceVideo] SSE processing enabled.
[RiceVideo] Found ROM 'THE LEGEND OF ZELDA', CRC b71170ec2bd71676-45
[RiceVideo] Enabled hacks for game: 'THE LEGEND OF ZELDA'
InitExternalTextures
Initializing OpenGL Device Context
(II) Initializing SDL video subsystem...
(II) Getting video info...
(II) Setting video mode 640x480...
Tungsten Graphics, Inc - Mesa DRI Intel(R) 945GM 20061017 x86/MMX/SSE2 : 1.3 Mesa 7.0.3-rc2
[RiceVideo] OpenGL Combiner: Fragment Program
(II) JttL's sound plugin version 1.3
(II) Initializing SDL audio subsystem...
(II) Allocating memory for audio buffer: 65536 bytes.
Starting r4300 emulator
R4300 Core mode: Dynamic Recompiler
Info: Stopping emulation.
Info: Emulation stopped.
PC=80002a50:8ca56340
reg[ 0]:       0       0        reg[16]:       0       1
reg[ 1]:fffffffffffffffe        reg[17]:       0       0
reg[ 2]:       0       1        reg[18]:       0       0
reg[ 3]:ffffffffa4600010        reg[19]:       0 5000510
reg[ 4]:ffffffff80009c10        reg[20]:ffffffff80006370
reg[ 5]:ffffffff80009bf8        reg[21]:       0      24
reg[ 6]:       0       1        reg[22]:ffffffff80009bf8
reg[ 7]:ffffffff801bdb60        reg[23]:       0       1
reg[ 8]:ffffffff80008a60        reg[24]:       0       1
reg[ 9]:       0    ff00        reg[25]:       0       8
reg[10]:ffffffff80000000        reg[26]:ffffffffa430000c
reg[11]:       0    ff00        reg[27]:       0     aaa
reg[12]:       0  34f3f0        reg[28]:       0       0
reg[13]:ffffffffb034f3f0        reg[29]:ffffffff80009b60
reg[14]:ffffffff80009c10        reg[30]:       0      1d
reg[15]:       0       0        reg[31]:ffffffff80002098
hi:       0       0        lo:       0       1
apr�s 643147818 instructions soit 2655a82a
(II) Cleaning up SDL sound plugin...
[RiceVideo] Found ROM 'THE LEGEND OF ZELDA', CRC b71170ec2bd71676-45
[blight's SDL input plugin]: Closing...
 

oneru

New member
Well... first off howdy. I am new to the forums...

I am having a very similar problem to zer0s. I too am using a little white box (from Walmart) that allows me to use a gamecube controller as a joystick input. The setup goes fine, but in-game, none of the buttons work. The interesting thing is that when I mapped just the start button to the keyboard, the game received the input.

I am running Linux, Fedora 7. I just checked out the source from svn and compiled it... same problem. Do you have any ideas?


Thanks, Oneru
 

nmn

Mupen64Plus Dev.
This is truly strange. Make sure SDL is all up to date and make sure the controller is selected in the Blight Input configuration dialog. Just click on the box that says "Keyboard" or "[joystick]" until it is on the right device. If it doesn't stay selected, something may be wrong.
 

Top