yep, it’s only that tetris thing again with yet another Jinput feature chucked in.
http://www.adam.com.au/kellyjones/java/JMTRumble/
and lotsa broken stuff. Some Axes don’t work. it worked before. i broke it. will fix it sometime, but it’s a pain for gamepads that pretend to be analog.
pads that have analog sticks and a d-pad will work ok though (except if they call the D-Pad a hat switch)
controllers will rumble even if you use the keyboard.
(if anyone feels like looking at the code for the input and maybe finding what’s wrong… )
http://www.adam.com.au/kellyjones/java/JMTRumble/source/InputManager.java
Rumbles when you clear a line. more lines = more rumbles. My Adaptoid (n64 controller) shakes the table, the PC Usb thing that i got for Xmas barely moves.
if i were to increase the duration of the rumble, the n64 controller would be too annoying to use, so that’s my problem. Anyone else out there with rumbling controllers, try it and let me know… too strong? too soft? an n64 rumble pak has it’s own batteries but most pc rumblers don’t… i played around with intensity on a little test i did and tried all sorts of values. as far as i saw, there are 2 values the controller recognises here: on and off, and the line between them is 10 for the adaptoid and 50 for the usb pad. (approximately).
i don’t really need control over the intensity in this game, but in the test i worked around it by switching it on and off repeatedly with diferent delays.
i suspect that my pc gamepad is either dodgy or broken anyway cause it has 2 rumblers and telling the second one to rumble makes it feel like the motor can’t even tick over fully in that side. Maybe not enough power coming from the laptop… i’ll check that out soon.
went to a lot of trouble to make the menus all AWT-erized, regretting it a lot now (waste of time for something that looks worse).
the joystick and keyboard buttons get saved when you close the game now. (if a joystick isnt plugged in when tetris starts, the game will forget about it and won’t even save it for next time.)
i had a headache writing the part that loads the keyboard and joystick buttons. the old serialize it and forget it trick just didn’t work. (didnt think it would)
anyway that’s my rant. it’s quite incomplete, but it’s all i’m doing for tonight and i wanted to release something at least.
and no, i’m not webstarting it. not till it’s at another stage of completion.