User Tag List

Results 1 to 5 of 5

Thread: Quick joystick/gamepad keymapping question

  1. #1
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export Module
    Chaos's Avatar
    Join Date
    Aug 2006
    Location
    Burnsville, MN, USA
    Posts
    806
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Quick joystick/gamepad keymapping question

    Greetings!

    I'm a bit new to some of the joystick extensions, and I couldn't find what I needed via searching, so here I am - My game runs on the standard 4 directions (player moved right, up, down, left) and then I use 7 fire keys. $ on player 1, and 3 on players 2's controller.

    I have the custom keyboard mapping all taken care of via CtrlX - but I'd like to integrate joypad functionality as well. The joypad works, but then I'd need to rewrite most of my code.

    My question, is there an extension that will allow me to map keyboard keys to a joypad, or a single joypad to multiple players? (So that I may access my other 3 fire buttons on player 2's controller, even though player 1 is using them)

    Thanks in advance, I hope I was clear enough! >.<

  2. #2
    Clicker Fusion 2.5 Developer

    Join Date
    Oct 2006
    Location
    Finland
    Posts
    65
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Quick joystick/gamepad keymapping question

    You can use the Joypad object. It comes with z33z extension pack downloadable here under the "Quick File Links".

    You might want to put an 'or' in your events. For example if one of your fire keys is enter and you want to make it also work with joypad button 5, you should make an event something like this:

    +when pressed enter
    +or
    +when joypad button 5 is pressed

    -player shoot bullet 5 (or whatever fire 5 does)


    That should do the trick! ...If I understood your problem right =)

  3. #3
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export Module
    Chaos's Avatar
    Join Date
    Aug 2006
    Location
    Burnsville, MN, USA
    Posts
    806
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Quick joystick/gamepad keymapping question

    Ahh thanks for the reply, I figured out a different method a day after I posted this It's complex, but fully customizable now.

  4. #4
    Clicker Fusion 2.5 Developer

    Join Date
    Oct 2006
    Location
    Finland
    Posts
    65
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Quick joystick/gamepad keymapping question

    Nice =) ...I'm making a fully customizable controls for my game too.

  5. #5
    No Products Registered

    Join Date
    Dec 2012
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Any way you can post and example of what you did?

Similar Threads

  1. Joystick 2/Joypad Objects detecting non-existent gamepad
    By Corlen in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 17th January 2013, 01:56 PM
  2. Detect if Gamepad/Joystick is connected?
    By Shawn in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 18th June 2009, 04:57 PM
  3. Joystick 2 extension question
    By mobichan in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 28th July 2008, 06:35 PM
  4. Quick question.
    By Clickboy in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 12th January 2007, 11:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •