0

This might just be me not finding it anywhere but how would I go about getting a joystick input from something like an xbox controller without using any external apis to help me. Most of what I found using an api called JInput.

weeryan17
  • 11
  • 7

2 Answers2

2

You will pretty much have to use an API - the controller gives input to the operating system, and getting that system data requires lower level access than normal Java permits.

0

Most of the time api is nothing but a well written java library to be used for client java code.Saying all that, you can still write that api if you want so, but that would be a lot more work, not to mention the quality of the code would be. I would advise you to go with whatever api you find and write the encapsulation code

Yohannes Gebremariam
  • 2,225
  • 3
  • 17
  • 23
  • Thank you for this. I will still wait for more responses to see if anyone can help out with the original question but I'll experiment around with the JInput api because it's probably my best option. – weeryan17 Feb 12 '16 at 23:11