PDA

View Full Version : TBDI Module Alpha 3 (updated)



Michael Hartlef
15-03-2007, 23:42
Here it is folks,

the Force is with thinBasic ;D

Attached is the current module and a sample script with a lots of effects (actually they are from the DirectX7 SDK).

These are the new commands:


TBDI_Init(hWnd as LONG) 'Very important, without it is doesn't work

n = TBDI_JoyHasFF 'Returns TRUE if Joystick is a Force Feedback-Device
n = TBDI_JoyHasEffect 'Returns TRUE if the device has buildin effects
n = TBDI_JoyCountEffects 'Returns the amount of buildin effects
s = TBDI_JoyGetEffectName(index as long) 'Returns the name of the buildin effect
TBDI_JoyPlayEffect(effectid as long) 'Plays an effect with the given ID
TBDI_JoyStopEffect(effectid as long) 'Stops an effect with the given ID
TBDI_JoySetAutocenter(%FALSE or %TRUE) 'Sets Autocenter OFF or ON for FF-Devices
n = TBDI_JoyLoadEffect(filename as string) 'Loads an effectfile and returns the effectid, otherwise -1




Have fun.

kryton9
16-03-2007, 06:36
Great news Mike, I will have to go shop now for sure. I thought I would have bought last week, but stuff came up as it does. Hopefully this weekend I put all the new stuff to test, thanks in advance!!

Petr Schreiber
16-03-2007, 09:48
Mike,

you're fast :)

This is really perfect addition. Now I must get some FF device :)
Syntax seems to be very nice and clean !


Thanks,
Petr

Michael Hartlef
16-03-2007, 17:22
Ok, the bug Eros mentioned is hopefully fixed. :) Please download it again.

kryton9
17-03-2007, 00:10
Downloaded, I plan on shopping tomorrow, so I can try out the new code, thanks in advance Mike!

Michael Hartlef
17-03-2007, 00:29
You're welcome, I hope you find something you will like.