Results 1 to 9 of 9

Thread: TBDI version ALPHA 4

  1. #1

    TBDI version ALPHA 4

    Hi folks,

    this is the version alpha 4 of the DirectInput module.

    To explain the parameter joyID, it's a parameter to tell TBDI which controller to use.
    It is zero based, so your first controller goes by 0. The type is LONG.


    ********************************************************************************************************************
    Current Command set
    ********************************************************************************************************************

    New stuff:


    [code=thinbasic]

    n = TBDI_JoyCount() 'Returns the number of connected controllers
    s = TBDI_JoyGetName( joyID as LONG ) 'Get the name of a joystick
    n = TBDI_JoyButtonOnce( joyid as LONG, buttonnumber ) 'Returns only once if a button is pressed




    [/code]



    Old stuff:


    [code=thinbasic]

    TBDI_Init( hWnd as LONG ) 'Very important, without it is doesn't work
    n = TBDI_JoyHasFF(j oyID as LONG ) 'Returns TRUE if Joystick is a Force Feedback-Device
    n = TBDI_JoyHasEffect( joyID as LONG ) 'Returns TRUE if the device has buildin effects
    n = TBDI_JoyCountEffects( joyID as LONG ) 'Returns the amount of buildin effects
    s = TBDI_JoyGetEffectName( joyID as LONG, index as long ) 'Returns the name of the buildin effect
    TBDI_JoyPlayEffect( joyID as LONG, effectid as long ) 'Plays an effect with the given ID
    TBDI_JoyStopEffect( joyID as LONG, effectid as long ) 'Stops an effect with the given ID
    TBDI_JoySetAutocenter( joyID as LONG, %FALSE or %TRUE ) 'Sets Autocenter OFF or ON for FF-Devices
    n = TBDI_JoyLoadEffect( joyID as LONG, filename as string ) 'Loads an effectfile and returns the effectid, otherwise -1
    n = TBDI_JoyButton ( joyID as LONG, buttonnumber AS LONG ) 'Check if a button is pressed
    n = TBDI_JoyX( joyID as LONG ) 'Retrieve the X-Axxis (default= -1024 to 1024)
    n = TBDI_JoyY( joyID as LONG ) 'Retrieve the Y-Axxis (default= -1024 to 1024)
    n = TBDI_JoyZ( joyID as LONG ) 'Retrieve the Z-Axxis (default= -1024 to 1024)

    n = TBDI_JoyRX( joyID as LONG ) 'Retrieve the rotation X-Axxis (default= -1024 to 1024)
    n = TBDI_JoyRY( joyID as LONG ) 'Retrieve the rotation Y-Axxis (default= -1024 to 1024)
    n = TBDI_JoyrZ( joyID as LONG ) 'Retrieve the rotation Z-Axxis (default= -1024 to 1024)

    n = TBDI_JoyAvail( joyID as LONG ) 'Returns %TRUE if Joystick is available.
    n = TBDI_JoyCountBtn( joyID as LONG ) 'Returns the amount of buttons available
    n = TBDI_JoyCountAxes( joyID as LONG ) 'Returns the amount of axxis available
    n = TBDI_JoyCountPOV( joyID as LONG ) 'Returns the amount of POV switches available

    n = TBDI_JoyPOV( joyID as LONG, POVnumber as LONG ) 'Retrieve the POV data in degree*100, POVNUMBER starts with 1
    n = TBDI_JoySlider( joyID as LONG, slidernumber as LONG ) 'Retrieve slider data

    TBDI_JoySetRangeXYZ( joyID as LONG, min as LONG, max as LONG ) 'Sets the range for all axxis
    TBDI_JoySetRangeX( joyID as LONG, min as LONG, max as LONG ) 'Sets the range for X-axxis
    TBDI_JoySetRangeY( joyID as LONG, min as LONG, max as LONG ) 'Sets the range for Y-axxis
    TBDI_JoySetRangeZ( joyID as LONG, min as LONG, max as LONG ) 'Sets the range for Z-axxis

    TBDI_JoySetDeadZoneXYZ( joyID as LONG, percent as LONG ) 'Sets the deadzone for all axxis
    TBDI_JoySetDeadZoneX( joyID as LONG, percent as LONG ) 'Sets the deadzone for X-axxis
    TBDI_JoySetDeadZoneY( joyID as LONG, percent as LONG ) 'Sets the deadzone for Y-axxis
    TBDI_JoySetDeadZoneZ( joyID as LONG, percent as LONG ) 'Sets the deadzone for Z-axxis




    [/code]

    Have fun
    Michael Hartlef
    Attached Files Attached Files

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

    Re: TBDI version ALPHA 4

    Mike,

    in the ZIP there is no DLL, just LIB file :'(
    I want to try AirDogs NOW


    Bye,
    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

  3. #3

    Re: TBDI version ALPHA 4

    Ups, download the game, the dll is there! I will fix this upload in a second. Sorry. :-[

  4. #4

    Re: TBDI version ALPHA 4

    Fixed!

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

    Re: TBDI version ALPHA 4

    Thanks a lot,

    both game and module work perfectly !


    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

  6. #6
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10

    Re: TBDI version ALPHA 4

    Thank you very MUCH!

    I will update help and lib for next preview (mid of next week)
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

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

    Re: TBDI version ALPHA 4

    Thanks 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

  8. #8
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10

    Re: TBDI version ALPHA 4

    Finished to update help on TBDI.
    Quite ready to release.

    Ciao
    Eros
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  9. #9

    Re: TBDI version ALPHA 4

    That's cool. Thanks man!

Similar Threads

  1. TBDI module Alpha 2
    By Michael Hartlef in forum TBDI module. thinBasic Direct Input integration by MikeHart
    Replies: 7
    Last Post: 04-03-2007, 10:18

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
  •