Unified.h File Reference

Unified input for keyboard+mouse+gamepad. Note that all input relies on the window being set up first. More...

#include "../base/Types.h"
#include <string>
#include <vector>

Include dependency graph for Unified.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  INPUT

Classes

struct  INPUT::UnifiedButton
 Represents an input button from an arbitrary device. More...

Enumerations

enum  INPUT::DeviceType
 The device that a button represents.

Functions

bool INPUT::IsButtonDown (const UnifiedButton &button)
 Returns whether the specific button is currently pressed down.
const std::vector
< UnifiedButton > & 
INPUT::GetCurrentlyPressedButtons ()
 Returns a list of buttons that are currently pressed down.
const std::vector
< UnifiedButton > & 
INPUT::GetNewlyPressedButtons ()
 Returns a list of buttons that were pressed since the last frame.
const std::string & INPUT::GetFriendlyName (const UnifiedButton &button)
 Retrieves a user-friendly name for a unified button.


Detailed Description

Unified input for keyboard+mouse+gamepad. Note that all input relies on the window being set up first.


Generated on Sat Aug 9 15:05:08 2008 for MPMA Framework by  doxygen 1.5.6