Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Controlli Controlli
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1
    • Issues 1
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Manu
  • ControlliControlli
  • Issues
  • #1

Closed
Open
Created Jan 21, 2026 by Manu@Manu🏅Owner

Cross-Compatibility with Linux

Make this application cross-platform for Linux

  • Controller access (SharpDX.XInput on Windows): SharpInputSystem (https://axiom3d.github.io/sharpinputsystem) could be used to access the gamepad

  • Scroll wheel access: Use libscroll.so which will work only with root privileges. This will work with pointing to a window and scrolling there

Fallback option for scrolling via Shift+Up/Down. This only works if the focused application supports this keybinding

[DllImport("libX11.so.6")]
static extern void XTestFakeKeyEvent(IntPtr display, int keycode, bool is_press, IntPtr time);
// Works without special perms on X11
  • Mouse access: XQueryPointer/XWarpPointer can be used from the X11 libraries which will also work with XWayland under Wayland compositors:
[DllImport("X11")]
static extern IntPtr XOpenDisplay(IntPtr display);

[DllImport("X11")]
static extern int XWarpPointer(
    IntPtr display, IntPtr src_w, IntPtr dest_w,
    int src_x, int src_y, uint src_width, uint src_height,
    int dest_x, int dest_y);

[DllImport("X11")]
static extern bool XQueryPointer(
    IntPtr display, IntPtr w, out IntPtr root_return, out IntPtr child_return,
    out int root_x_return, out int root_y_return,
    out int win_x_return, out int win_y_return,
    out uint mask_return);
Edited Jan 21, 2026 by Manu
Assignee
Assign to
Time tracking