Using gamepad with key combinations

3 replies [Last post]
Qwert
User offline. Last seen 8 years 44 weeks ago. Offline
Joined: 2013-09-12
Posts: 3

Hello,

my friends and I are frequently playing worms on PC with an PS2 emulator and a gamepad. Since the graphics is not very beautiful there, I installed hedgewars on my Windows 7 PC. However it is quite uncomfortable to hand around the keyboard and mouse so I also tried to use the gamepad. Almost everything works fine except the selection of the weapons.
My idea to solve this was to not only use the different keys alone for an action but to define something like a switching key. In practice I want to move the hedgehogs by using the analog stick and move the mouse by using the combination of holding a special button when moving the analog stick.

So my questions are:
1. Is it possible to do this in hedgewars, maybe by editing some configuration files?
2. If not, is it possible to use an external program that is "between" hedgewars and the controller? Is such a program available?

Thanks for your help in advance Smile.

KoBeWi
KoBeWi's picture
User offline. Last seen 1 week 4 days ago. Offline
Joined: 2010-12-25
Posts: 564

Qwert allegedly wrote:
2. If not, is it possible to use an external program that is "between" hedgewars and the controller? Is such a program available?

There are programs that emulate keyboard/mouse input with gamepad. I don't know any particular one, but you can google "gamepad keyboard mapper" or something similar and look for one that fits you.

h3oCharles
h3oCharles's picture
User offline. Last seen 1 week 5 days ago. Offline
Joined: 2012-10-19
Posts: 129

1. Is it possible to do this in hedgewars, maybe by editing some configuration files?

Yes, when you are making a team and using it, plug a gamepad to your computer. Once you done that, go to your team, then on top of screen, you should see 2 categories, choose the 2nd. Over there, you should see keybinds. Choose whatever keybind and from dropdown list you should see on most bottom gamepad binds.

In my case, im using a XBOX360 wired pad, profile #1. You can check out my team on pastebin here: http://pastebin.com/DVKGfSEv

If you want to use this team, open up notepad, paste that thing i've given you and save it as "XBOX360 Shenanigans.hwt" without quotes and make sure that you choose all files (*). Once you done that, go to:

  1. Windows: Documents/Hedgewars
  2. Linux: ~/.hedgewars
  3. Mac OS X: ~/Library/Application Support/Hedgewars
Now go to folder Teams, and paste that there. Also, theres one of my graves chosen there, you should change that. But in game pls.

2. If not, is it possible to use an external program that is "between" hedgewars and the controller? Is such a program available?

Yes, Xpadder is one of them, however it costs. You can check it out here: http://www.xpadder.com/

Hopefully i helped you. Good Luck.

oh hi

Qwert
User offline. Last seen 8 years 44 weeks ago. Offline
Joined: 2013-09-12
Posts: 3

Thanks for your suggestions. I am going to try them as soon as I have access to that PC again.

User login

Copyright © 2004-2024 Hedgewars Project. All rights reserved. [ contact ]