Jump to content

All my products and services are free. All my costs are met by donations I receive from my users. If you enjoy using any of my products, please donate to support me. My bare hosting costs are currently not met so please consider becoming a contibuting member by either clicking this text or the Patreon link on the right.

Patreon

Recommended Posts

Posted

I bought a USB adaptor for my PS2 controller. The buttons in control panel are as follows:

triangle -1

square -4

circle -2

x- 3

Select -10

start -9

R1 -8

R2-6

L1 -7

L2 -5

I tried pressing tab during the game but i doesn't seem to be registering the buttons properly.

This is what I put in the gameex custom input ini file.

JOYSTICK]

#Button Number starting a 1

Button1=4

Button2=1

Button3=3

Button4=2

Button5=7

Button6=5

Button7=8

Button8=6

Button9=9

Button10=10

Select=10

Back=1

Shift1_Paging=3

Shift2_Volume=4

PrevTrack=6

NextTrack=7

What am I doing wrong?

Posted
I bought a USB adaptor for my PS2 controller. The buttons in control panel are as follows:

triangle -1

square -4

circle -2

x- 3

Select -10

start -9

R1 -8

R2-6

L1 -7

L2 -5

I tried pressing tab during the game but i doesn't seem to be registering the buttons properly.

This is what I put in the gameex custom input ini file.

JOYSTICK]

#Button Number starting a 1

Button1=4

Button2=1

Button3=3

Button4=2

Button5=7

Button6=5

Button7=8

Button8=6

Button9=9

Button10=10

Select=10

Back=1

Shift1_Paging=3

Shift2_Volume=4

PrevTrack=6

NextTrack=7

What am I doing wrong?

Go into your game pad properties under control panel and test.

Posted

I did turn on the custom input in the config. Under control panel, I tested the buttons and that is where I have the numbers from above. Its weird, when I use the default custom input file, some buttons work, but when I add the buttons (i.e. Button1=4) nothing works except the directional pads.

Posted
I did turn on the custom input in the config. Under control panel, I tested the buttons and that is where I have the numbers from above. Its weird, when I use the default custom input file, some buttons work, but when I add the buttons (i.e. Button1=4) nothing works except the directional pads.

You have to use the scancodes.txt to get the values for custom input I believe. Not from control panel.

1 Escape

2 D1

3 D2

4 D3

5 D4

6 D5

7 D6

8 D7

9 D8

10 D9

11 D0

12 Minus

13 Equals

14 BackSpace

15 Tab

16 Q

17 W

18 E

19 R

20 T

21 Y

22 U

23 I

24 O

25 P

26 LeftBracket

27 RightBracket

28 Return

29 LeftControl

30 A

31 S

32 D

33 F

34 G

35 H

36 J

37 K

38 L

39 SemiColon

40 Apostrophe

41 Grave

42 LeftShift

43 BackSlash

44 Z

45 X

46 C

47 V

48 B

49 N

50 M

51 Comma

52 Period

53 Slash

54 RightShift

55 NumPadStar

56 LeftMenu

57 Space

58 CapsLock

59 F1

60 F2

61 F3

62 F4

63 F5

64 F6

65 F7

66 F8

67 F9

68 F10

69 Numlock

70 Scroll

71 NumPad7

72 NumPad8

73 NumPad9

74 NumPadMinus

75 NumPad4

76 NumPad5

77 NumPad6

78 Add

79 NumPad1

80 NumPad2

81 NumPad3

82 NumPad0

83 Decimal

86 OEM102

87 F11

88 F12

100 F13

101 F14

102 F15

112 Kana

115 AbntC1

121 Convert

123 NoConvert

125 Yen

126 AbntC2

141 NumPadEquals

144 Circumflex

145 At

146 Colon

147 Underline

148 Kanji

149 Stop

150 AX

151 Unlabeled

153 NextTrack

156 NumPadEnter

157 RightControl

160 Mute

161 Calculator

162 PlayPause

164 MediaStop

174 VolumeDown

176 VolumeUp

178 WebHome

179 NumPadComma

181 NumPadSlash

183 SysRq

184 RightMenu

197 Pause

199 Home

200 Up

201 PageUp

203 LeftArrow

205 Right

207 End

208 DownArrow

209 PageDown

210 Insert

211 Delete

219 LeftWindows

220 RightWindows

221 Apps

222 Power

223 Sleep

227 Wake

229 WebSearch

230 WebFavorites

231 WebRefresh

232 WebStop

233 WebForward

234 WebBack

235 MyComputer

236 Mail

237 MediaSelect

Posted

Sorry, I don't understand. How do I know which of the scancodes correspond to the buttons on the controller? And what would I have to put in the custom input file

Posted
Sorry, I don't understand. How do I know which of the scancodes correspond to the buttons on the controller? And what would I have to put in the custom input file

I don't use custom input so I'm at a loss. I't looks like you might have to use the D0-D9 as buttons. Again I don't know.

Posted
I did turn on the custom input in the config. Under control panel, I tested the buttons and that is where I have the numbers from above. Its weird, when I use the default custom input file, some buttons work, but when I add the buttons (i.e. Button1=4) nothing works except the directional pads.

Hi Ariay,

I think i can help, im using a PS2 gamepad with a usb adapter aswell, my button numbers are the same as yours too :)

Here's the buttons i use to navigate gameex:

Select=X

Back=Square

Paging=Hold Triangle - Press Up/Down

Volume=Hold Circle - Press Up/Down

PrevTrack=R2

NextTrack=L2

This is whats in the custominput.ini

[JOYSTICK]
#Button Number starting a 0

Select=2
Back=3
Shift1_Paging=0
Shift2_Volume=1
PrevTrack=4
NextTrack=5

This works fine for me, Let us know how you get on :)

p.s. Here's a full list of the PS2 gamepad buttons for gameex:

0 - Triangle

1 - Circle

2 - X

3 - Square

4 - L2

5 - R2

6 - L1

7 - R1

8 - Select

9 - L3

10 - R3

11 - Start

12 - D-Pad Up

13 - D-Pad Right

14 - D-Pad Down

15 - D-Pad Left

[EDIT]

Note for people using Custom Input

The button numbers given in the windows control panel are different to the ones used by gameex, because in gameex the button numbers start at 0, while windows starts at 1.

This means that the button numbers change like this: 1 in the control panel becomes 0 in gameex, 2 becomes 1, 3 becomes 2 etc..

Posted

Great! I have been looking for these! Thank you!

Posted

Thank You! That worked. However, I cut and pasted your code. What I'd like to know (which I still don't get) is how to map all the buttons. For example: I'd like to make the select button (8) be the coin insert. And start (11) be start. I would also like to map all six buttons to play games like street fighter.

Posted

ok, the info i gave before was for navigating around gameex.

I think your looking to map your gamepad to mame aswell, so this is how to do it:

- Start Mame outside of gameex

- launch a game, once its fullscreen press 'Tab' to

"bring up the configuration screen. If you have MAME's default settings on, you use the 'arrow' keys to move around and 'enter' to make a selection. If you should press the wrong key, use 'escape' to nullify it" (T Spiers)

- Select 'Input General', then 'other controls'

you can set buttons for P1 Start, and Coin 1 there.

- To set other buttons like kick punch or whatever, go to 'input general' then 'player 1 controls'

That should sort it :)

Posted

Take note that on a PS2 controller you should set it up with the analog turned on. The buttons change if you're bouncing between the two modes.

Posted

I have everything setup now. Thanks for all of your help. My main problem was that I was doing the input general (tab when games starts) from within Gameex. For some reason, that made the buttons completely unresponsive. When I used Mame outside of Gameex, I was able to select the action (I.e. button 1), I then pressed enter (which made the selection blank), and hit the corresponding Ps2 button (i.e. triangle), and it worked perfectly for both players.

Posted

The Setup Wizard can be helpful for cases like this. Select Start->Programs->GameEx->Setup Wizard. Then select Custom->Joystick Input.

Click the "..." button to map the navigation setting to a button on your joystick.

post-367-1162601542_thumb.jpg

  • 6 months later...
Posted

I'm using a PS2 controller through a USB adapter and I have it working great, with one exception. Can you map the ESC key to a button on the PS2 controller? That will give me full control of GameEX with the controller. I'm a bit of a newbie, so forgive me if this has already been explained thoroughly.

Posted

I've tried going to gameex/config/emulators and editing the customimput.ini where you can put "true" at a certain button where it says gamepadexit, but it didn't work. Any help would be greatly appreciated. All I want is to map ESC to a button on the PS2 controller so I can exit all emulators with one button.

Posted
I'm using a PS2 controller through a USB adapter and I have it working great, with one exception. Can you map the ESC key to a button on the PS2 controller? That will give me full control of GameEX with the controller. I'm a bit of a newbie, so forgive me if this has already been explained thoroughly.

Xpadder is the answer to your mapping troubles, it'll let you map any keyboard key mouse function to any button on your joypad :)

http://www.xpadder.com/

Stu

Posted
Xpadder is the answer to your mapping troubles, it'll let you map any keyboard key mouse function to any button on your joypad :)

http://www.xpadder.com/

Stu

Thanks for the tip! Xpadder works great. There's just one little thing I'm trying to figure out. Most games don't use that many buttons, so I can just set ESC to L2 and exit that way. However, the N64 controller uses a lot of buttons, so I'd like to use L2 for something other than an exit button. I can't get PJ64 to detect the second analog stick, so I have to map the C buttons to all the other gamepad buttons. So, my question is, is there a way with Xpadder to have two gamepad button presses activate the ESC, like pressing L2 and R2 combined activate ESC? I know how to make one gamepad button activate multiple keypresses, like ALT+F4 by pressing L2, but I'd like to make it do the opposite. L2+R2 activates ESC. Any help would be greatly appreciated.

Posted
Thanks for the tip! Xpadder works great. There's just one little thing I'm trying to figure out. Most games don't use that many buttons, so I can just set ESC to L2 and exit that way. However, the N64 controller uses a lot of buttons, so I'd like to use L2 for something other than an exit button. I can't get PJ64 to detect the second analog stick, so I have to map the C buttons to all the other gamepad buttons. So, my question is, is there a way with Xpadder to have two gamepad button presses activate the ESC, like pressing L2 and R2 combined activate ESC? I know how to make one gamepad button activate multiple keypresses, like ALT+F4 by pressing L2, but I'd like to make it do the opposite. L2+R2 activates ESC. Any help would be greatly appreciated.

Yeah can do this (I only realised how to do it myseld the other day) what I've done is assigned my 'Select' key as normal to 5 (mame insert coin) then click the 'Set Selector ON' tab and set it to 'Selects Set 2 while held'

Now close the button config window and click '2' at the bottom right if the Xpader main screen, now your on set 2. Edit the L2 assignment and click 'Special' then 'Pause 1.00s' then click the blank box to add another command beside the '1.00' the click 'Esc' then 'Special' again and finally 'Cycle Stop'

So now while your playing pressing select works as normal but if you hold it and L2 for 1 second it will exit the emu... having the 1 sec delay stops accidental presses :)

I'm not sure if the Cycle Stop bit is required or not I just added it and it works so I left it in

Stu

Posted
Yeah can do this (I only realised how to do it myseld the other day) what I've done is assigned my 'Select' key as normal to 5 (mame insert coin) then click the 'Set Selector ON' tab and set it to 'Selects Set 2 while held'

Now close the button config window and click '2' at the bottom right if the Xpader main screen, now your on set 2. Edit the L2 assignment and click 'Special' then 'Pause 1.00s' then click the blank box to add another command beside the '1.00' the click 'Esc' then 'Special' again and finally 'Cycle Stop'

So now while your playing pressing select works as normal but if you hold it and L2 for 1 second it will exit the emu... having the 1 sec delay stops accidental presses :)

I'm not sure if the Cycle Stop bit is required or not I just added it and it works so I left it in

Stu

Thanks for your help. I got it all working now.

Guest
This topic is now closed to further replies.
×
×
  • Create New...