Author Topic: Input tester  (Read 7523 times)

Nebuleon

  • Guest
Input tester
« on: August 21, 2014, 08:31:59 am »
For those who want to see whether, or how well, their GCW Zero's various controls work, I've developed a pair of input testers. One runs under SDL 1.2, and one runs under SDL 2. They are both in this OPK and will appear in /Applications as "Input tester" once installed.

Download: https://dl.dropboxusercontent.com/u/106475413/gcw-zero/input-test.opk
Source: https://github.com/Nebuleon/input-test-gcw0

With the testers you can use the following controls of the GCW Zero:
  • Directional cross
  • Face buttons (A, B, X, Y)
  • Shoulder buttons (L, R)
  • Microswitch buttons (Start, Select)
  • Power button (held up and down)
  • Analog nub (should appear as a green dot if working and off center)
  • Gravity sensor (should appear as an orange dot if working and not parallel to the Earth)
  • SDL 2.0 tester only!: Rumble (activated with L+R held at once, deactivated when either is not pressed)
The testers both report if, during a single invocation, either LEFT and RIGHT or UP and DOWN were seen pressed simultaneously on the directional cross. A red message stating "Opposite directions pressed simultaneously on the cross" will appear in that case.

Nebuleon

  • Guest
Re: Input tester
« Reply #1 on: August 21, 2014, 08:38:18 am »
Known issues as of 2014-08-21 (on 2014-08-20 firmware):
  • As discussed in OpenDingux update 2014-08-20 #10, at least with my hardware, the rumble doesn't stop when L+R is unpressed and SDL_HapticRumbleStop is called.
  • The gravity sensor may be initialised correctly but be stuck at its initial reading until the application exits.
  • The gravity sensor may fail to initialise under the SDL 1.2 tester.

The following issue is fixed as of 2014-08-21 19:09:30 UTC:
  • The joystick dot for the analog nub will now correctly appear if the analog nub is at the far left, or is far up.
Please confirm or deny the existence of these on your units. :)
« Last Edit: August 21, 2014, 08:10:42 pm by Nebuleon »

Gab1975

  • Posts: 1165
Re: Input tester
« Reply #2 on: August 21, 2014, 11:56:28 am »
I have got a GCW Zero SE:
- I confirm that the rumble doesn't stop when L+R is unpressed;
- In my device the gravity sensor is initialised correctly both with SDL 2.0 and with SDL 1.2;
- the analog nub works perfectly under SDL 1.2, while under SDL 2.0, if I push the stick to the extreme top and left, the green dot goes over the edges of the box and it disappears.

raygan

  • Posts: 158
    • I'm on Twitter and stuff...
Re: Input tester
« Reply #3 on: August 21, 2014, 06:09:44 pm »
I have a white GCW Zero SE

- I get no vibration at all when pressing L+R. It's possible my vibration motor just doesn't work, or there could be some other difference. Not sure how to test.
- I get the same behavior as Gab1974 with regards to the top and left edges using analog under SDL 2.0.

RodrigoCard

  • Posts: 314
    • Mac Joystick Apps
Re: Input tester
« Reply #4 on: August 21, 2014, 06:12:51 pm »
I can confirm that

KickingCooler

  • Posts: 79
    • YouTube Channel
Re: Input tester
« Reply #5 on: August 21, 2014, 07:01:10 pm »
I can also confirm that rumble does not stop. I have a gcw zero from Thinkgeek
Also, both SDL 2.0 and SDL 1.2 do not rumble for me. SDL 2.0 worked once with rumble, but it stopped working. It may have something to do with the battery because my battery was very low at the time. Analog worked perfectly with SDL 2.0.

[EDIT] Rumble works now.
« Last Edit: August 21, 2014, 07:40:56 pm by KickingCooler »
I'm back. (for the third time) :P

Surkow

  • * Administrator
  • Posts: 675
Re: Input tester
« Reply #6 on: August 21, 2014, 07:34:28 pm »
I have a white GCW Zero SE

- I get no vibration at all when pressing L+R. It's possible my vibration motor just doesn't work, or there could be some other difference. Not sure how to test.
- I get the same behavior as Gab1974 with regards to the top and left edges using analog under SDL 2.0.
You have an early (non public) unit. I don't have a vibration motor in mine either.

Nebuleon

  • Guest
Re: Input tester
« Reply #7 on: August 21, 2014, 08:13:01 pm »
The issue where the analog nub displays no dot if it is at the far left or far up in SDL 2 is fixed in the download currently available in the OP.

This was a bug of the application, not of SDL 2 or our driver. You can see commit e54c46f for the change that resulted in this issue being fixed.

Gab1975

  • Posts: 1165
Re: Input tester
« Reply #8 on: August 21, 2014, 08:48:47 pm »
The issue where the analog nub displays no dot if it is at the far left or far up in SDL 2 is fixed in the download currently available in the OP.

I confirm, with the fixed opk the analog nub works perfectly also in SDL 2.0 ! :)

raygan

  • Posts: 158
    • I'm on Twitter and stuff...
Re: Input tester
« Reply #9 on: August 21, 2014, 09:52:48 pm »
You have an early (non public) unit. I don't have a vibration motor in mine either.

I haven't tested using my preproduction unit, I was using my Kickstarter special edition. Weirdly enough, after trying it again, it now DOES vibrate, but only in the SDL 2.0 version. (Actually, I'm not sure if I just neglected to try it on the SDL 2.0 version before or if something actually changed.)

Also, I get the same issue on my unit everyone else is having, where the vibration doesn't stop when the buttons are released.

So to amend my previous notes:

White Kickstarter Special Edition Zero:
- No vibration in SDL 1.2 version
- Vibration that continues after buttons are released in the SDL 2.0 version

zear

  • * Moderator
  • Posts: 2381
Re: Input tester
« Reply #10 on: August 21, 2014, 10:16:42 pm »
    - No vibration in SDL 1.2 version

    • SDL 2.0 tester only!: Rumble (activated with L+R held at once, deactivated when either is not pressed)

    Nebuleon

    • Guest
    Re: Input tester
    « Reply #11 on: August 21, 2014, 10:41:47 pm »
    You also don't see the "L+R to rumble" prompt if you run the SDL 1.2 tester. That's a way to check which version you're running.

    Kouen Hasuki

    • Posts: 155
    Re: Input tester
    « Reply #12 on: August 22, 2014, 09:38:46 am »
    Wouldn't stop rumbling for me on my Normal unit :)

    raygan

    • Posts: 158
      • I'm on Twitter and stuff...
    Re: Input tester
    « Reply #13 on: August 23, 2014, 06:17:40 am »
      - No vibration in SDL 1.2 version

      • SDL 2.0 tester only!: Rumble (activated with L+R held at once, deactivated when either is not pressed)

      I guess I don't read so good.  :-[

      congusbongus

      • Posts: 80
        • congusbongusgames
      Re: Input tester
      « Reply #14 on: May 13, 2015, 10:20:14 am »
      This is pretty neat, why not add it to the official repo?

      zear

      • * Moderator
      • Posts: 2381
      Re: Input tester
      « Reply #15 on: May 14, 2015, 06:27:41 pm »
      This is pretty neat, why not add it to the official repo?
      Because it triggers the rumble motor driver bug in the current firmware. It will need to wait with the repo inclusion until the next firmware release.