Results 1 to 8 of 8

Thread: TBDI module Alpha 2

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 2

    Hi folks,

    friends are gone and I had some more time with the DirectInput module.
    Say goodbye to 2 functions (TBDI_INIT and TBDI_CLOSE)!
    Say hello to 18 new functions to make your life regarding joysticks easier.

    Here is the current command set:

    [code=thinbasic]n = TBDI_JoyButton ( buttonnumber AS LONG) 'Check if a button is pressed
    n = TBDI_JoyX 'Retrieve the X-Axxis (default= -1024 to 1024)
    n = TBDI_JoyY 'Retrieve the Y-Axxis (default= -1024 to 1024)
    n = TBDI_JoyZ 'Retrieve the Z-Axxis (default= -1024 to 1024)

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

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

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

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

    TBDI_JoySetDeadZoneXYZ(percent as LONG) 'Sets the deadzone for all axxis
    TBDI_JoySetDeadZoneX(percent as LONG) 'Sets the deadzone for X-axxis
    TBDI_JoySetDeadZoneY(percent as LONG) 'Sets the deadzone for Y-axxis
    TBDI_JoySetDeadZoneZ(percent as LONG) 'Sets the deadzone for Z-axxis
    [/code]

    Suggestions, critics and other things are allways welcome.

    Cheers
    Michael
    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
  •