www.BCB-Tools.com

Home of
RAD DirectX
for
C++ Builder

...

C++ Builder wrapping DirectX

...

Please Register

So we can
create more

the TDx_Library
the TDx9_Library



Welcome to BCB-Tools.com Latest News

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

Register Here! Available Downloads

Frequently Asked Questions Discussion Forums Receive emails from BCB-Tools.com Send us some Feedback

Links to other sites Information about the BCB-Tools.com website


    TDx_Input_Library v1.90 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: admin@bcb-tools.com.



























Top

Welcome |  Latest News |  Tools |  Demos |  Tutorials |  Reference |  Register |  Downloads
FAQ |  Forums |  Feedback |  Mailing List |  Links |  Site Information

This page is Copyright © 2008 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.