Skip to content

axis_l and axis_r: signal for centered position is missing #29

@Vrumf0ndel

Description

@Vrumf0ndel

Hi everyone. For my application, I need to measure the time a button or stick is pressed or moved.
This works fine for all buttons.
Also the trigger buttons axis range is from 0.000 to 1.000 as expected.

But the axis axis_l and axis_r values are only set if value is above treshold, but never on centered position.
I'm missing the value 0.000 0.000 to detect centered position.
Without I can't distinguish between stick is released or hold on that position.

Axis axis_l moved to 0.000 -0.230
Axis axis_l moved to 0.000 -0.578
Axis axis_l moved to 0.000 -1.000
Axis axis_l moved to 0.000 -0.871
Axis axis_l moved to 0.000 -0.378

Axis axis_l moved to 0.000 0.417
Axis axis_l moved to 0.000 0.702
Axis axis_l moved to 0.000 1.000
Axis axis_l moved to 0.000 0.802
Axis axis_l moved to 0.000 0.513

Axis axis_l moved to -0.255 0.000
Axis axis_l moved to -0.293 0.000
Axis axis_l moved to -0.394 0.000
Axis axis_l moved to -0.455 0.000
Axis axis_l moved to -0.957 0.000
Axis axis_l moved to -1.000 0.000
Axis axis_l moved to -0.959 0.000
Axis axis_l moved to -0.239 0.000

Axis axis_l moved to 0.234 0.000
Axis axis_l moved to 0.368 0.000
Axis axis_l moved to 0.667 0.000
Axis axis_l moved to 0.865 0.000
Axis axis_l moved to 1.000 0.000
Axis axis_l moved to 0.791 0.000
Axis axis_l moved to 0.481 0.000
Axis axis_l moved to 0.268 0.000

Also tried with second controller, but it's the same output.

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