User Tag List

Results 1 to 6 of 6

Thread: How do we add controller support?

  1. #1
    No Products Registered

    Join Date
    May 2008
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How do we add controller support?

    Well, just as the subject line says, how do we add external controller support into our games for an enhanced gaming experience?
    I tried to utilize the Player Object and the Analog Joystick Object, but to no avail.
    Does anyone know the best method to go about this?

  2. #2
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How do we add controller support?

    You can set the default controls (under Application Properties/Runtime Options/Default Controls) for Player 1 to use a joypad, if one is detected by Windows.

  3. #3
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Location
    England
    Posts
    3,546
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: How do we add controller support?

    There is also the Joypad object and Joystick 2 object.
    .:::.Joshtek.:::.

  4. #4
    No Products Registered

    Join Date
    May 2008
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How do we add controller support?

    Dang. This whole time, I didn't realize that those options were right in front of me. I gotta start experimenting more!
    Thanks a whole lot, you guys!

    Actually, one more quick question:
    Does anyone know what the button mapping is set to for the joypad controls? (For the application Properties method) I understand that there are four individual action buttons, but which button on a joypad would activate which action (numbers 1-4)?

    Lemme give an example:
    Let's take a Playstation controller. On the left, there are the directional buttons. On the right are the action buttons. At the bottom there's X, left is Square, on the top is Triangle, and right is Circle. What action button number in TGF2 would correlate to each of these controller buttons? (If that makes it any easier.)

  5. #5
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How do we add controller support?

    The buttons are numbered in the order that Windows detects them - I can answer the Playstation controller case because I have the same setup myself. They're numbered clockwise starting from Triangle, that is:

    Triangle = 1
    Circle = 2
    Cross = 3
    Square = 4

    And the directional pad is treated as one combined entity, rather than as separate buttons (it's easier to explain this just by looking at how the Joypad object handles it).

  6. #6
    No Products Registered

    Join Date
    May 2008
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How do we add controller support?

    Hey, thanks one heck of a lot, man! While I can't test the controller buttons, I can still at least put them in there. It's good that you knew the order of the number setup, too. I'd have been completely lost with the button mapping! Thanks again!

Similar Threads

  1. Xbox controller support before XNA exporter purchase?
    By Nuklear in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 3rd September 2013, 04:08 PM
  2. Controller support?
    By Outcast in forum Multimedia Fusion 2 - Technical Support
    Replies: 28
    Last Post: 27th August 2013, 04:23 PM
  3. Quick question about ouya and controller support
    By Diablohead in forum Android Export Module Version 2.0
    Replies: 2
    Last Post: 9th June 2013, 01:14 PM
  4. Ps3 controller?
    By NeoMonkey in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 24th November 2010, 07:13 PM
  5. [Request] Xbox 360 controller vibration support
    By Blueberry_pie in forum Extension Development
    Replies: 8
    Last Post: 6th May 2007, 03:46 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
  •