|
Input System
v0.1
|
A test fixture for writing tests that use the input system. Can be derived from or simply instantiated from another test fixture. More...
Inherited by ISX.HID.HIDTests, and XInputTests.
Public Member Functions | |
| virtual void | Setup () |
| Put InputSystem into a known state where it only has a basic set of templates and does not have any input devices. More... | |
| virtual void | TearDown () |
| Restore the state of the input system it had when the test was started. More... | |
A test fixture for writing tests that use the input system. Can be derived from or simply instantiated from another test fixture.
The fixture will put the input system into a known state where it has only the built-in set of basic templates and no devices. The state of the system before starting a test is recorded and restored when the test finishes.
|
virtual |
Put InputSystem into a known state where it only has a basic set of templates and does not have any input devices.
If you derive your own test fixture directly from InputTestFixture, this method will automatically be called. If you embed InputTestFixture into your fixture, you have to explicitly call this method yourself.
|
virtual |
Restore the state of the input system it had when the test was started.