Results 1 to 6 of 6

Thread: TBDI Module Alpha 3 (updated)

  1. #1

    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

  2. #2
    thinBasic MVPs kryton9's Avatar
    Join Date
    Nov 2006
    Location
    Naples, Florida & Duluth, Georgia
    Age
    67
    Posts
    3,869
    Rep Power
    404

    Re: TBDI Module Alpha 3

    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

  3. #3
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732

    Re: TBDI Module Alpha 3

    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

  4. #4

    Re: TBDI Module Alpha 3 (updated)

    Ok, the bug Eros mentioned is hopefully fixed. Please download it again.

  5. #5
    thinBasic MVPs kryton9's Avatar
    Join Date
    Nov 2006
    Location
    Naples, Florida & Duluth, Georgia
    Age
    67
    Posts
    3,869
    Rep Power
    404

    Re: TBDI Module Alpha 3 (updated)

    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

  6. #6

    Re: TBDI Module Alpha 3 (updated)

    You're welcome, I hope you find something you will like.

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
  •