Skip to content

Invert Y axis on evdev joysticks #123

Open

Description

@samuelthewhale

It it possible to invert the Y axis of a joystick connected to midimonster through the evdev backend?

Activity

  1. jeinstei commented on Oct 17, 2025

    @jeinstei

    So more a feature request for a flag in evdev to invert an axis and/or buttons?

    data->relative_axis[data->relative_axes].inverted = 0;

  2. phedders commented on Oct 17, 2025

    @phedders

    You can write a very simple two line lua filter to do it.

  3. phedders commented on Oct 17, 2025

    @phedders

    I havent tested this but soemthing like

    function invert(v)
    output ("inverted"..intput_channel(),1-v);
    end

    load that as a [lua ....] source - you can set the default-hander to invert if you like

    then use a chain such as

    midiX.ch0.note{1..10} > invert.{1..10}
    invert.inverted{1..10} > midiY.ch2.note{1..10}

    (NB dont include the "inverted".. if you just want the "note" to be the same as the input.)
    (NB - seems a bit silly to be adding this to a very old thread... :) )

  4. jeinstei commented on Oct 17, 2025

    @jeinstei

    I’m not sure why out would be a filter as opposed to just adding the feature though— i might just write a pr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions