HeroEngine Forums
Welcome, Guest. Please login or Register for HeroCloud Account.

Author Topic: Joypad Support?  (Read 1052 times)

jcsmith562

  • General Accounts
  • *
  • Posts: 190
    • View Profile
Joypad Support?
« on: Jan 31, 15, 11:45:00 PM »

Hey guys,

One thing I've noticed is that I (and reports from others) am unable to bind my joypad to any of the key bindings in game. I notice in the build notes though that it does mention joystick support, see joystick button support at least, and I also notice XInput support in Sapphire. Is there something special that needs to be done here? Or is joypad support broken at the moment?
Logged

keeperofstars

  • General Accounts
  • *
  • Posts: 998
    • View Profile
    • StarKeeper Online
Re: Joypad Support?
« Reply #1 on: Feb 01, 15, 09:06:40 PM »

could be way off but... probably need to make sure you keybindings mapping is correct.

http://hewiki.heroengine.com/wiki/HSL_Input_System_and_Keybindings

Will notice the default has zero setup for joystick so will need to map the joystick input to the command you want it to fire off. Then map that. If you have done that already then mind posting the custom keybindings.ini so we can see if there is something a miss with it?

Thanks
Logged
[img]http://screencast.com/t/x7btcSSyp3h0[\img]

jcsmith562

  • General Accounts
  • *
  • Posts: 190
    • View Profile
Re: Joypad Support?
« Reply #2 on: Feb 03, 15, 08:44:06 AM »

I haven't tried directly mapping the joypad to buttons yet will need to experiment with it.

We use a remappable key binding system though. And when remapping our key bindings pressing the joypad doesn't seem to register.
Logged

keeperofstars

  • General Accounts
  • *
  • Posts: 998
    • View Profile
    • StarKeeper Online
Re: Joypad Support?
« Reply #3 on: Feb 03, 15, 10:34:43 AM »

try setting up the default in the .ini file see what happens. Could be wrong but pretty sure you have to have at least a base listing in that file, for the engine / client to know to listen for the input.
Logged
[img]http://screencast.com/t/x7btcSSyp3h0[\img]

FI-ScottZ

  • General Accounts
  • *
  • Posts: 1407
    • View Profile
    • Forever Interactive, Inc.
Re: Joypad Support?
« Reply #4 on: Feb 03, 15, 01:25:05 PM »

I am a little confused by you use of the term "joypad".  The HeroWiki page on HeroEngineKeyBindings.ini says in the file dump that, "JOYSTICK.1 through JOYSTICK.16 are joystick/gamepad buttons."  However, the latest version of HeroEngineKeyBindings.ini lists items like GAMEPAD.X, GAMEPAD.Y, etc.

To the Idea Fabrik team, are both GAMEPAD and JOYSTICK still currently valid controls to define in the ini files?

For JC, is it a gamepad or joystick you are trying to support?
Logged
Scott Zarnke
Lead Programmer, Visions of Zosimos
CTO, Forever Interactive, Inc.

HE-HERB

  • HeroEngine
  • *****
  • Posts: 530
    • View Profile
    • HeroEngine
Re: Joypad Support?
« Reply #5 on: Feb 03, 15, 02:12:19 PM »

I fixed the wiki page.  The correct bindings are:

GAMEPAD.START
GAMEPAD.BACK
GAMEPAD.LEFTTHUMB
GAMEPAD.RIGHTTHUMB
GAMEPAD.LEFTSHOULDER
GAMEPAD.RIGHTSHOULDER
GAMEPAD.A
GAMEPAD.B
GAMEPAD.X
GAMEPAD.Y
GAMEPAD.DPADUP
GAMEPAD.DPADDOWN
GAMEPAD.DPADLEFT
GAMEPAD.DPADRIGHT


Cheers
Logged
herb marselas
graphics guy

jcsmith562

  • General Accounts
  • *
  • Posts: 190
    • View Profile
Re: Joypad Support?
« Reply #6 on: Feb 04, 15, 04:26:31 AM »

Thanks a bunch.
Logged