Results 1 to 6 of 6

Thread: TBDI Module Alpha 3 (updated)

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    thinBasic MVPs Michael Hartlef's Avatar
    Join Date
    Sep 2006
    Location
    Germany
    Age
    58
    Posts
    3,299
    Rep Power
    348

    TBDI Module Alpha 3 (updated)

    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.
    Attached Files Attached Files

Similar Threads

  1. Re: TBDI Module Alpha 3
    By ErosOlmi in forum TBDI Bug report
    Replies: 2
    Last Post: 16-03-2007, 17:17

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •