User Tag List

Page 7 of 7 FirstFirst ... 5 6 7
Results 61 to 70 of 70

Thread: SDL Joystick Object release

  1. #61
    Forum Moderator Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleFirefly 3D Module
    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)Mac Export Module (Steam)Universal Windows Platform Export Module (Steam)Firefly 3D Module (Steam)
    NaitorStudios's Avatar
    Join Date
    May 2010
    Location
    Brazil
    Posts
    1,252
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    You might need to load the txt at start of frame on the test above as well, forgot to say

  2. #62
    Clicker 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
    Oct 2016
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by NaitorStudios View Post
    Create a new mfa, add a counter, press a button and make notes of what button that is...
    The controller mappings is just so it's consistent, so you don't have to worry about other controllers being completely different.
    Oh ok thanks.
    This is what i did in first place, but for the PS4 pad only, without loading the map.

    Thanks again.

  3. #63
    Clicker 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
    Oct 2016
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by NaitorStudios View Post
    You might need to load the txt at start of frame on the test above as well, forgot to say
    Yeah sure.

  4. #64
    Clicker 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
    Oct 2016
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok buttons works as expected. Numbers are the same for PS4 and XBOX one controllers.

    The d-pad is tricky.
    For XBOX is a "Hat value", while for the PS4 is a button value (11-14), the same that i found before loading the map.

    I'll try to make some "or" statements...

  5. #65
    Clicker 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
    Oct 2016
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nope. Only the first four buttons (0-3) are the same.
    Everything else is mixed up. So i think the loaded map isn't working.

    I can make the d-pad working with "hat value" (for xbox one) and button pressed (for PS4), but this is a workaround.

  6. #66
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    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)Firefly 3D Module (Steam)
    Phi's Avatar
    Join Date
    Jan 2010
    Location
    England
    Posts
    2,044
    Mentioned
    25 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Pika View Post
    Nope. Only the first four buttons (0-3) are the same.
    Everything else is mixed up. So i think the loaded map isn't working.

    I can make the d-pad working with "hat value" (for xbox one) and button pressed (for PS4), but this is a workaround.
    Try using the example MFA that comes with SDL Joystick - it should say which buttons are being pressed. Modify it to load the game controller map file first, if you need to.

    It registering every input is most of the battle, though.

  7. #67
    Clicker 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
    Oct 2016
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Phi View Post
    Try using the example MFA that comes with SDL Joystick - it should say which buttons are being pressed. Modify it to load the game controller map file first, if you need to.

    It registering every input is most of the battle, though.
    I tried it with and without map. Nothing changed. Buttons numbers are always the same.

    I found out that the GUID is not in the map.
    Is very similar to this:
    030000005e040000ff02000000000000,Wired Xbox One Controller
    with the last numbers being different (7200 instead of 0000).
    So i tried to add it to the map copying the line, but nothin happens. Still the same button numbers...

  8. #68
    Clicker Fusion 2.5 (Steam)
    Linky's Avatar
    Join Date
    Mar 2020
    Location
    Egypt
    Posts
    183
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah, I have the same issue as @Pika with adding mapping files, it doesn't seem to do anything...
    The buttons are still mixed up, DS4 doesn't return hat values and instead returns them as buttons from (11-14), analogue joysticks centers are 128/128, instead of 0,0 (though I at least found a workaround with this one: Click image for larger version. 

Name:	Joystick workaround.jpg 
Views:	27 
Size:	97.2 KB 
ID:	31223)
    Which means I had to make a manual system that changes a virtual configuration based on the controller connected. and like it works. But doesn't seem like the right thing to do especially with the many controllers available out there

    I tried to load the global mapping file, nothing changed, tried to make my own mapping file, same thing, so i'm really confused with this action

  9. #69
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    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)Firefly 3D Module (Steam)
    Phi's Avatar
    Join Date
    Jan 2010
    Location
    England
    Posts
    2,044
    Mentioned
    25 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Linky View Post
    I tried to load the global mapping file, nothing changed, tried to make my own mapping file, same thing, so i'm really confused with this action
    On closer inspection, that's for SDL GameController classes, not SDL Joystick classes. I will see if I can write the A/C/E for interacting with the GameController part, but it may not be for a while.

  10. #70
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    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)Firefly 3D Module (Steam)
    Phi's Avatar
    Join Date
    Jan 2010
    Location
    England
    Posts
    2,044
    Mentioned
    25 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Phi View Post
    On closer inspection, that's for SDL GameController classes, not SDL Joystick classes. I will see if I can write the A/C/E for interacting with the GameController part, but it may not be for a while.
    Wrote 'em. Will be out of testing next week, hopefully - I have an intermittent hard drive I'm trying to duplicate first though.
    Darkwire patrons can get it early!

Page 7 of 7 FirstFirst ... 5 6 7

Similar Threads

  1. Joystick 2 object
    By z33z in forum Released Extensions
    Replies: 26
    Last Post: 10th October 2019, 01:39 PM
  2. Replies: 0
    Last Post: 14th June 2015, 08:54 AM
  3. Joystick 2 object
    By kromblite in forum Fusion 2.5
    Replies: 4
    Last Post: 25th January 2014, 03:28 AM
  4. [RC6/release] Joystick causes objects to disappear
    By Koji_Kabuto in forum Android Export Module Version 2.0
    Replies: 6
    Last Post: 20th March 2013, 01:10 PM
  5. Joystick object 2
    By z33z in forum File Archive
    Replies: 1
    Last Post: 11th February 2008, 09:27 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
  •