VCL RAD DirectX for C++ Builder

Welcome to

www.tdxlibrary.org

Home of the
the TDx_Library...

=- RAD DirectX =-

"RAD DirectX"
for
C++ Builder

...

Welcome to tdxlibrary.org Latest News

Development Tools Demo Applications Step-By-Step Tutorials Component Reference

Register our Tools Available Downloads

Frequently Asked Questions Links to other sites Information about the tdxlibrary.org website


    TDx_Input_Library v2.00 Component Reference

    -= Click to navigate the reference =-
    Go to the Welcome Page

    [ TDx_InputDevice::EnumEffectsInFile() ]     [ next: EnumObjects() ]     [ prev: EnumEffects() ]

    public:

         virtual bool __fastcall EnumEffectsInFile( AnsiString* pFileName, void* pReferenceData, dword pFlags );





    -= Go to the TDx_InputDevice description =-    TDX_INPUTDEVICE::ENUMEFFECTSINFILE()   [ component method ]

    • Description

        The EnumEffectsInFile() method will enumerate effects stored in a file by the Force Editor utility or another application that utilizes the same file format. (RIFF)

        The Force Editor is included with the DirectX sdk and can usually be found at (SDK root)\Bin\Dxutils\Fedit.exe or under DirectX 7->DX Tools on your start bar.

        When enumeration is halted by the callback function, the return result is still DI_OK.

        Error values that can be generated are:

        DIERR_INVALIDPARAM
        DIERR_NOTINITIALIZED

    • Parameters

        FileName
        The FileName parameter defines the name of the RIFF file.

        ReferenceData
        The ReferenceData parameter references an application defined 32 bit value to be passed to the callback function for each enumeration.

        Flags
        The Flags parameter defines flags indicating which effects to include or modify while enumerating.
        The described effect applies when the flag is set.

          DIFEF_DEFAULT
          This flag is equivilent to setting the parameter to 0.

          DIFEF_INCLUDENONSTANDARD
          Effect types that are undefined by DirectInput should also be enumerated.

          DIFEF_MODIFYIFNEEDED
          Modify the effects being enumerated so that they can be played on this device.

          Setting this flag causes the properties of the TDIEffect component referenced by the TDIFileEffect::Effect in the callback function to be modified.

          For example : An attempt to play an effect authored for a two axis device on a single axis device will fail unless this flag was set when retrieving the effect from the file.


    • See Also
    • Top





    If you would like to submit additions or improvements to this page, click: darren_john_dwyer@hotmail.com.



























Top

Welcome |  Latest News |  Tools |  Demos |  Tutorials |  Reference |  Register |  Downloads
FAQ |  Links |  Site Information

This page is Copyright © 2019 Darren John Dwyer, Australia. All Rights Reserved.
Borland C++ Builder, CBuilder, etc are Trademarks of Borland Corporation.
DirectX, DirectDraw, Windows, etc are Trademarks of Microsoft Corporation.