Public Member Functions | Public Attributes

xl7::directinput::MainObj Class Reference

#include <MainObj.h>

Inheritance diagram for xl7::directinput::MainObj:
xl7::directx::Component< MainObj > xl7::errorcodes::ErrorCodeAssembly< MainObj > cl7::designpatterns::Singleton< MainObj >

List of all members.

Public Member Functions

 MainObj (void)
 ~MainObj (void)
IDirectInput8 * GetInterface ()
const IDirectInput8 * GetInterface () const
devices::InputDeviceManagerGetDeviceManager ()
size_t GetDeviceCount () const
devices::InputDeviceGetDevice (const size_t i)
const devices::InputDeviceGetDevice (const size_t i) const
void UpdateInputDeviceStates (const float time)

Public Attributes

errorcodes::ErrorCode create_dinput_already
errorcodes::ErrorCode create_dinput_error
errorcodes::ErrorCode create_dinput_success
errorcodes::ErrorCode create_dinput_device_already
errorcodes::ErrorCode create_dinput_device_error
errorcodes::ErrorCode create_dinput_device_success
errorcodes::ErrorCode create_dinput_device_keyboard_error
errorcodes::ErrorCode create_dinput_device_mouse_error
errorcodes::ErrorCode create_dinput_device_game_controller_error
errorcodes::ErrorCode create_dinput_device_keyboard_success
errorcodes::ErrorCode create_dinput_device_mouse_success
errorcodes::ErrorCode create_dinput_device_game_controller_success
errorcodes::ErrorCode create_dinput_enumerate_devices_error
errorcodes::ErrorCode create_dinput_enumerate_devices_success
errorcodes::ErrorCode init_dinput_error
errorcodes::ErrorCode init_dinput_success
errorcodes::ErrorCode shutdown_dinput_error
errorcodes::ErrorCode shutdown_dinput_success

Detailed Description

The DirectInput main object.


Constructor & Destructor Documentation

xl7::directinput::MainObj::MainObj ( void   ) 

Default constructor.

xl7::directinput::MainObj::~MainObj ( void   ) 

Destructor.


Member Function Documentation

devices::InputDevice* xl7::directinput::MainObj::GetDevice ( const size_t  i  )  [inline]

Returns the i-th (zero-indexed) input device.

const devices::InputDevice* xl7::directinput::MainObj::GetDevice ( const size_t  i  )  const [inline]

Returns the i-th (zero-indexed) input device.

size_t xl7::directinput::MainObj::GetDeviceCount (  )  const [inline]

Returns the number of input devices.

devices::InputDeviceManager& xl7::directinput::MainObj::GetDeviceManager (  )  [inline]

Returns the input device manager.

const IDirectInput8* xl7::directinput::MainObj::GetInterface (  )  const [inline]

Returns the DirectInput main interface.

IDirectInput8* xl7::directinput::MainObj::GetInterface (  )  [inline]

Returns the DirectInput main interface.

void xl7::directinput::MainObj::UpdateInputDeviceStates ( const float  time  ) 

Updates the state of the input devices.


Member Data Documentation

IDirectInput8::CreateDevice failed and returned an error.

The creation of a game controller device caused an error.

IDirectInput8::EnumDevices failed and returned an error.

DirectInputCreate8 failed and returned NULL.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines