Emulate joystick movements and button presses in java [preferably Xbox one controllers]

Viewed 20

I am attempting to create an application for local cloud gaming using devices on the same Wi-Fi router for low latency. So, my android application sends a json string to my desktop application. From there, that string is interpreted and I have some code to perform some actions as necessary.

What I want is either

  • A library which will help me to emulate keypresses, Joystick movements, etc.
  • Or, a function that emulates a controller key press.

For now, I am using java robot and emulating keyboard presses. Although they have extremely low latency, they aren't that good at registering long key presses or for mouse movement.

Leads I have -

  • JXInput : This is a java library I found. At first I thought it was an emulation library, but, after some reading into it, It seems it requires an actual controller to be connected.
  • SDL : Simple DirectMedia Layer is a cross-platform development library designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL and Direct3D.
  • XInput : Getting Started With XInput in Windows applications.
  • x360ce : A java library that allows your controller (gamepad, joystick, wheel, etc.) to function as an Xbox 360 controller.
0 Answers
Related