I want to use Gyro as a camera in FPS games and I feel like it’d be really awesome if I could tilt the Deck for “constant movement” towards the direction until Deck is brought back to the original position.

  • CodyCigar96o@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    That sounds horrible. You basically want to use the gyro as a big joystick. So basically unless you hold your deck perfectly still in the same position your camera will just drift in some direction. It’s not going to work the way you imagine.

  • ClikeX@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    Yes, you can set it to directional pad mode. Which triggers different commands based on tilt direction. You could leave everything except tilt forward empty and then trigger forward on “w”.

    Alternatively, in joystick mode you can set it to output left joystick, and then set the minimum output value for the x axis to 1. This would essentially make it so you can move forward and backward by tilting the device.

      • ClikeX@alien.topB
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        Continuous aiming is going to be a bit difficult to implement with Gyro. The “Joystick” option is the one you’ll need, though.

        “As Joystick” is the smart one that outputs as joystick values, but stops when you hold it still.

        “Joystick” literally just straight up sends the jaw/pitch data to a virtual joystick. Which means that leaning it forward will keep the “joystick” in that position until you move it back. I just tried it in Tomb Raider, and it seems to work, but it you’ll need to do some tweaking with the settings to get it right. Works fine vertically, but I have issues getting good output using horizontal movements.

  • Viper711@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    A lot is possible, but you have to learn how to add action sets on button press if you want to add any temporary behaviours.