FPSE and joysensors plugin issues
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    Solo_Kazuki
    Posts: 108 from 2006/7/24
    From: Universe:Milky...
    Hello

    I was talking about it with BSzili, and in short he's not able to fix this now, maybe he can do some more explanation. But maybe someone have ideas how to solve this?

    Problem is with joysensors plugin in FPSE. It was done when MorphOS was in older version and USB hid class was working slightly different. It was based on X-Box joypad support, which is not working correctly now.

    X-Box joypad problem

    In my case all buttons are working, just directions don't. Sometimes "up" direction is working in config, but after this only this up direction works under emulation.
  • »24.05.19 - 08:42
    Profile Visit Website
  • MorphOS Developer
    jacadcaps
    Posts: 1753 from 2003/3/5
    From: Poland
    Well, what is the problem exactly? What gamepad are you using?
  • »25.05.19 - 16:50
    Profile Visit Website
  • MorphOS Developer
    jacadcaps
    Posts: 1753 from 2003/3/5
    From: Poland
    I’ll try to check the class with the pads I have... haven’t really touched this in a while.
  • »25.05.19 - 16:52
    Profile Visit Website
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    Solo_Kazuki
    Posts: 108 from 2006/7/24
    From: Universe:Milky...
    I'm using standard hid joypad with PS joypad look and 10 buttons. Manta MM812 to be exact.

    i-manta-mm812.jpg

    Every other apps which use joypad (even Amiga classic one, e.g. MacJoy) have no problem.

    Problem is that during config i cannot use directions when i'm trying to config them. Only up direction works sometimes.

    [ Edited by Solo_Kazuki 25.05.2019 - 18:39 ]
  • »25.05.19 - 17:09
    Profile Visit Website
  • MorphOS Developer
    jacadcaps
    Posts: 1753 from 2003/3/5
    From: Poland
    @Solo_Kazuki

    Pulled out a random USB gamepad - works, but you generally need to make sure the mappings in USB preferences make sense. In the list on the bottom/left on the config window you'll see a 'Sensors' entry and you generally have to try and fix this by hand. Most joysticks have a totally bogus HID descriptor (they fix it by installing Windows filter drivers)...

    To check what the sensors API sees on the other side, download and run https://tunkki.dk/~jaca/waitandhid utility.

    I've also just tested an XBox 360 Wireless pad and an XBox One pad using waitandhid and they both work correctly. There's some issue with the 2 analog triggers in the 360 pad, so I'll make sure to correct that. The rest works just fine.

    @BSzili

    I'll try to review your code soon...

    Anyway, I recommend using XBOne/360 or PS4 gamepads and not the crappy random USB stuff.
  • »25.05.19 - 18:06
    Profile Visit Website
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    Solo_Kazuki
    Posts: 108 from 2006/7/24
    From: Universe:Milky...
    My config of joypad is that:

    9O7o1OrQ_o.png

    ZNmZDnF8_o.png

    Report current values option act ok, proper values are changing. I don't know what is not right.

    Edit: Your program report all buttons but only up direction, like FPSE plugin. Other directions are not reported at all. It's weird, because all other apps which use joypad works without problem.

    [ Edited by Solo_Kazuki 25.05.2019 - 19:34 ]
  • »25.05.19 - 18:16
    Profile Visit Website
  • MorphOS Developer
    jacadcaps
    Posts: 1753 from 2003/3/5
    From: Poland
    Try setting the Grouping to 1 for both axes.
  • »25.05.19 - 18:34
    Profile Visit Website
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    Solo_Kazuki
    Posts: 108 from 2006/7/24
    From: Universe:Milky...
    This does not solve problem, moreover now even up direction doesn't work.

    I was trying also change type to analog joystick and this is also not working.
  • »25.05.19 - 18:41
    Profile Visit Website
  • MorphOS Developer
    jacadcaps
    Posts: 1753 from 2003/3/5
    From: Poland
    Analog wouldn't help since this is not an analog stick (well, it'd simply go between -1.0/0/1.0 values). Can you post a screenshot of the waitandhid application?
  • »26.05.19 - 07:36
    Profile Visit Website
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    Solo_Kazuki
    Posts: 108 from 2006/7/24
    From: Universe:Milky...
    Screen03.png

    As i mentioned all buttons work ok, direction only up.
  • »26.05.19 - 11:34
    Profile Visit Website
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    Solo_Kazuki
    Posts: 108 from 2006/7/24
    From: Universe:Milky...
    Hello

    Is anything going on in this case?
  • »16.06.19 - 13:18
    Profile Visit Website