Tech Off Post

Single Post Permalink

View Thread: Discuss the Beginning Game Development series on Coding 4 Fun
  • User profile image
    ngbrito

    In the code you normally have:

    _device.Acquire();
    _device.Properties.AxisModeAbsolute = false;

    At least in my PC (Windows 2000) the second line always causes an exception! Apparently, you may only change this property before acquiring the device and as such the code should be:

    _device.Properties.AxisModeAbsolute = false;
    _device.Acquire();