Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 30, 2009, 2:22:00 AM (15 years ago)
Author:
rgrieder
Message:

Merged resource2 branch back to trunk.

IMPORTANT NOTE:
Upon this merge you need to specifically call your data directory "data_extern" when checking it out (when you don't provide a name, it will be just called 'trunk').
The new CMake variable is EXTERNAL_DATA_DIRECTORY. DATA_DIRECTORY now points to the one the source part of the repository.
UPDATE YOUR DATA DIRECTORY AS WELL!!!

Location:
code/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/src/ois/win32/Win32ForceFeedback.h

    r1505 r5695  
    3434                Win32ForceFeedback() {}
    3535        public:
    36                 Win32ForceFeedback(IDirectInputDevice8* joy);
     36                Win32ForceFeedback(IDirectInputDevice8* pDIJoy, const DIDEVCAPS* pDIJoyCaps);
    3737                ~Win32ForceFeedback();
    3838
     
    5252                void setAutoCenterMode( bool auto_on );
    5353
    54                 /** @copydoc ForceFeedback::getFFAxesNumber
    55                         xxx todo - Actually return correct number
    56                 */
    57                 short getFFAxesNumber() {return 1;}
     54                /** @copydoc ForceFeedback::getFFAxesNumber */
     55                short getFFAxesNumber();
     56
     57                /** @copydoc ForceFeedback::getFFMemoryLoad */
     58                unsigned short getFFMemoryLoad();
    5859
    5960                /**
     
    6465                void _addEffectSupport( LPCDIEFFECTINFO pdei );
    6566
     67                /**
     68                        @remarks
     69                        Internal use.. Used during axis enumeration to get number of FF axes
     70                        support effects.
     71                */
     72                void _addFFAxis();
     73
    6674        protected:
     75
    6776                //Specific Effect Settings
    6877                void _updateConstantEffect( const Effect* effect );
     
    7180                void _updateConditionalEffect( const Effect* effect );
    7281                void _updateCustomEffect( const Effect* effect );
     82
    7383                //Sets the common properties to all effects
    7484                void _setCommonProperties( DIEFFECT* diEffect, DWORD* rgdwAxes,
    75                                                                         LONG* rglDirection, DWORD struct_size,
    76                                                                         LPVOID struct_type, const Effect* effect );
     85                                                                        LONG* rglDirection, DIENVELOPE* diEnvelope, DWORD struct_size,
     86                                                                        LPVOID struct_type, const Effect* effect, const Envelope* envelope );
    7787                //Actually do the upload
    7888                void _upload( GUID, DIEFFECT*, const Effect* );
    7989
     90                // Map of currently uploaded effects (handle => effect)
    8091                typedef std::map<int,LPDIRECTINPUTEFFECT> EffectList;
    8192                EffectList mEffectList;
    82                 //Simple unique handle creation - allows for upto 2+ million effects
     93
     94                //Simple unique handle creation - allows for upto 2+ billion effects
    8395                //during the lifetime of application. Hopefully, that is enough.
    8496                int mHandles;
    8597
     98                // Joystick device descriptor.
    8699                IDirectInputDevice8* mJoyStick;
     100               
     101                // Joystick capabilities.
     102                const DIDEVCAPS* mpDIJoyCaps;
     103
     104                // Number of axis supporting FF.
     105                short mFFAxes;
    87106        };
    88107}
Note: See TracChangeset for help on using the changeset viewer.