Hii, I was trying to get started with JInput and all I wanted to know was how to tell whether a group of particular buttons were pressed on the keyboard.
Trolling through this forum hasn’t made me any less confused :o)
Can anyone help?
Hii, I was trying to get started with JInput and all I wanted to know was how to tell whether a group of particular buttons were pressed on the keyboard.
Trolling through this forum hasn’t made me any less confused :o)
Can anyone help?
Hi
One way to do ths would be to get the controller list, find the controller you want, then get it’s axis list and go through till you find the ones you want, then you can get the data from those axis.
Hope that helps
Endolf
Thanks for the reply. The bit I’m not sure about is how I tell which are the axis (from the keyboard) that I want.
What I mean, is having retrieved the list of all axis, how do I tell which axis is up, down, W, A, S, D etc… ?
TIA
Hi
this bit is a part of the API that is about to get cleaned up, for now, search for an axis with the name you want, it should be called ‘A’ or ‘Z’ or something. What ever it is called you should be able to use.
HTH
Endolf
OK thanks, that does help.