Skip to content

Silk.NET.Input.Glfw.GlfwJoystick: Events not implemented #1889

@SEAPUNK

Description

@SEAPUNK

Summary

When trying to use joysticks with GLFW, they do not fire events (ButtonDown, ButtonUp, AxisMoved, HatMoved), probably because there isn't any code that invokes those events. SDL, on the other hand, does: https://github.com/dotnet/Silk.NET/blob/main/src/Input/Silk.NET.Input.Sdl/SdlJoystick.cs#L55

Steps to reproduce

  • Platform: N/A
  • Framework Version: N/A
  • API: N/A
  • API Version: N/A
  1. Plug in any joystick
  2. Run InputTest: https://github.com/dotnet/Silk.NET/tree/main/src/Lab/Experiments/InputTest
  3. Attempt to use the joystick
  4. Note that no events for the joystick are being logged to console
  5. (optional) Run with --sdl and note that SDL does log to console

Comments

Since I haven't written any C# before, I don't know what the right fix for this is. If you have any pointers for me, I might attempt it anyway.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions