Results 1 to 5 of 5

Thread: DIPROP_AUTOCENTER

  1. #1

    DIPROP_AUTOCENTER

    im trying to turn auto center off but im not understanding it.

    from the MSDN site it sais

    Quote Originally Posted by msdn
    DIPROP_AUTOCENTER
    Specifies whether device objects are self centering. This setting applies to the entire device, rather than to any particular object, so the dwHow member of the associated DIPROPDWORD structure must be DIPH_DEVICE.

    The dwData member can be one of the following values.

    DIPROPAUTOCENTER_OFF: The device should not automatically center when the user releases the device. An application that uses force feedback should disable autocentering before playing effects.

    DIPROPAUTOCENTER_ON: The device should automatically center when the user releases the device.

    Not all devices support the autocenter property.
    and im sending the header in, but it has no place for data

    Code:
      DIPROPHEADER = packed record
        dwSize: DWORD;
        dwHeaderSize: DWORD;
        dwObj: DWORD;
        dwHow: DWORD;
      end;

    im doing this...


    Code:
    var
      dipdw: DIPROPDWORD;
    
                            dipdw.diph.dwSize:= sizeof(DIPROPDWORD);
                            dipdw.diph.dwHeaderSize:= sizeof(DIPROPHEADER);
                            dipdw.diph.dwObj:= 0;
                            dipdw.diph.dwHow:= DIPH_DEVICE;
                            dipdw.dwData:= 0;
    
                            if Succeeded(Device.SetProperty(DIPROP_AUTOCENTER, dipdw.diph)) then
    i asume i put it in the dipdw.dwData:= 0; but thats not actually passed to direct input

    whats wrong?

  2. #2

    DIPROP_AUTOCENTER

    doesnt matter now. after sending some forces to the wheel it behaves as i need


    but ive got a new problem.

    how do i apply a different constant force to y axis then to x? do i have to send 2 effects?

  3. #3

    DIPROP_AUTOCENTER

    Have you played with FEdit.exe utility from DirectX SDK?
    There are only 10 types of people in this world; those who understand binary and those who don't.

  4. #4

    DIPROP_AUTOCENTER

    ive got the december 2004 SDK and cant find it...


    the force feedback im going to be doing will just take torque from the steering wheel or other things (so i dont need effects like wooden bridge or explosion etc)

  5. #5

    DIPROP_AUTOCENTER

    Well, it's still in Oct-04 SDK. Maybe in Dec-04 and later MS moved it to "extra" download.
    I've just assumed that it's easier to just play ffe files than to generate them at runtime.
    There are only 10 types of people in this world; those who understand binary and those who don't.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Comodo SSL