This is just jinput thrown into my tetris game. its not finished, and im not sure i will finish it, i just wanted to try out jinput in a game.
it even makes the keyboard control feel nicer than how i’d done it using AWT key refresh but i think i need to play with the speed to get it just right, it’s a little touchy.
i tested it with keyboard input, and analog joystick input.
differentiating between x or y axis + or - was one thing that caught me… you’ll find with the way i’ve done it that you can’t set right to left and vice versa on an analog controller. digital axes may not work at all, but that’s my fault. and buttons do work.
to fix this i need to do some more work, but i never have much time.
http://www.adam.com.au/kellyjones/java/InputAlpha.zip
Just unzip it somewhere, and run JMTetris.jar in the usual way. i included the jinput binaries. (i havent tested it without them in the same directory though). can someone who has jinput1.1 properly installed try running it on its own and let me know if that works too?