RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Zero Delay USB Joystick encoder and Daphne

    Scheduled Pinned Locked Moved Help and Support
    daphne controll
    3 Posts 2 Posters 602 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • chubstaC
      chubsta
      last edited by

      I guess many of us use these encoders so am hoping someone else has run into the same use.

      I am trying to setup Daphne, I have run the jstest and got values for my buttons (to which I know I need to add '1') but am having troubles with my directions...

      Initially I tried getting the values for up and down but they just gave me -32767 and 32767 at position 1, and -32767 and 32767 at value two for the horizontals - I guess this means it is getting an analogue signal.

      So, but of research later and I read that as the light on the encoder board is red it is in analogue mode, which makes sense, so I change it by adding a switch to the 'mode' connector on the board which makes the light go green, apparently this should now be in digital mode.

      Sop I try again and this time I just get the -32767/32767 readings for my directions in position 5 and 6 - so I haven't achieved anything.

      Anyone able to help with this please?

      Raspberry Pi 400 - overclocked to 2.3GHz
      Theme - Comic book
      Emulators: All of them...
      Roms: Pretty much all of them...
      Favourite games: Circus Charlie, Gorf, Gauntlet Legends
      Controllers: Mayflash F101

      1 Reply Last reply Reply Quote 0
      • ClydeC
        Clyde
        last edited by Clyde

        These values are normal for digital joysticks via zero delay encoders, I guess they're just the maximum analog values for the four axes, and a digital input just gets them up to the stop. For example, this is the output for mine using jstest --event /dev/js0 and the directions up, down, left, right:

        Event: type 2, time 6890520, number 1, value -32767
        Event: type 2, time 6890740, number 1, value 0
        Event: type 2, time 6891160, number 1, value 32767
        Event: type 2, time 6891280, number 1, value 0
        Event: type 2, time 6891720, number 0, value -32767
        Event: type 2, time 6891890, number 0, value 0
        Event: type 2, time 6892550, number 0, value 32767
        Event: type 2, time 6892770, number 0, value 0
        

        That said, I don't understand exactly what you mean by "position 1". Care to elaborate?

        chubstaC 1 Reply Last reply Reply Quote 1
        • chubstaC
          chubsta @Clyde
          last edited by

          @Clyde thanks for the reply, the 'position 1' I was referring to was the part on jstest where it shows the result for the joystick movement, so basically when I press up I get a result showing 0:-32767.

          I think I have it sorted now by downloading the Daphne version from this thread...

          sorted!

          Raspberry Pi 400 - overclocked to 2.3GHz
          Theme - Comic book
          Emulators: All of them...
          Roms: Pretty much all of them...
          Favourite games: Circus Charlie, Gorf, Gauntlet Legends
          Controllers: Mayflash F101

          1 Reply Last reply Reply Quote 1
          • First post
            Last post

          Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

          Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.