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!!
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:
[code=thinbasic]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
[/code]
Have fun.
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!!
Acer Notebook: Win 10 Home 64 Bit, Core i7-4702MQ @ 2.2Ghz, 12 GB RAM, nVidia GTX 760M and Intel HD 4600
Raspberry Pi 3: Raspbian OS use for Home Samba Server and Test HTTP Server
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
Learn 3D graphics with ThinBASIC, learn TBGL!
Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB
Ok, the bug Eros mentioned is hopefully fixed. Please download it again.
Downloaded, I plan on shopping tomorrow, so I can try out the new code, thanks in advance Mike!
Acer Notebook: Win 10 Home 64 Bit, Core i7-4702MQ @ 2.2Ghz, 12 GB RAM, nVidia GTX 760M and Intel HD 4600
Raspberry Pi 3: Raspbian OS use for Home Samba Server and Test HTTP Server
You're welcome, I hope you find something you will like.
Bookmarks