PS3 Controller not working within PiPlay - Is working in OS ok
  • Hey all,
    Bit of a fiddly one, hopefully I'm just missing something obvious.

    I have successfully setup a PS3 controller via bluetooth, confirmed output from jstest and SDL is outputting to console so I am pretty sure the hardware is passing correctly to the OS.
    The problem is even after editing controller.yaml with the correct codes as output from jstest the piplay menu is not recognising the controller input at all. Using a keyboard I have also brought up a controller config app (TAB) and no button presses are recognised.

    Using the most current version Beta 8 on Rpi2.
    Any help would be greatly appreciated.

    Controller.yaml snippet -

    JOYSTICK:
    HORIZONTAL_AXIS: 0
    VERTICAL_AXIS: 1

    DIRECTIONAL:
    LEFT: -1
    RIGHT: 1
    UP: -1
    DOWN: 1

    BUTTONS:
    SELECT: 14
    BACK: 13
    MENU: 3
    Quit: 0

    KEYBOARD:
    UP:
    - pygame.K_UP
    - pygame.K_KP8
    - pygame.K_w
    DOWN:
    - pygame.K_DOWN
    - pygame.K_KP2
    - pygame.K_s
    LEFT:
    - pygame.K_LEFT
    - pygame.K_KP4
    - pygame.K_a
    RIGHT:
    - pygame.K_RIGHT
    - pygame.K_KP6
    - pygame.K_d
    SELECT:
    - pygame.K_RETURN
    - pygame.K_SPACE
    - pygame.K_KP_ENTER
    BACK:
    - pygame.K_ESCAPE
    - pygame.K_j
    MENU:
    - pygame.K_TAB
    - pygame.K_n
    QUIT:
    - "[pygame.K_LCTRL, pygame.K_q]"
    - "[pygame.K_n, pygame.K_j]"

    OPTIONS:
    AXIS_DRIFT_TOLERANCE: .9

    Thanks all.
  • @tyrelever - what method did you use to connect your ps3 controller? I'll give it a shot and see what I can come up with.
  • Hey mate, will do when I get home later today. Off the top of my head it was a "standard" -

    Supporting repos - SDL (and others, ill check tonight)
    Bluetooth - Bluez (+ bluez utls etc)
    Controller driver and BT - Sixad service
    Testing tools - jstest, sdl output to console

    Configs and setups to come
    Cheers.
  • I am having this exact same problem :(

    If I can help in any way I am happy to do so.
  • Mame4all works though :)

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!