Classes | Namespaces

gamepad-type.h File Reference

#include "datahash/datahash.h"
#include "nstream/nstream.h"
Include dependency graph for gamepad-type.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  gamepad::Type
 a type of gamepad (Dualshock, Xbox, N64, etc) More...

Namespaces

namespace  gamepad



enum  gamepad::eInputType {
  gamepad::eInput_Button = 0x01,
  gamepad::eInput_Joystick = 0x02,
  gamepad::eInput_Pot = 0x04,
  gamepad::eInput_Dpad = 0x08,
  gamepad::eInput_Invalid = 0x00
}
typedef std::map< std::string,
smart_ptr< Type > > 
gamepad::gamepad_type_map_t
 maps from name --> gamepad type object
smart_ptr< Type > gamepad::readType (IN nstream::Stream *stream)
 read a gamepad type object from the given datahash
void gamepad::addGamepadTypesInFolderToMap (IO nstream::Folder *folder, IO gamepad_type_map_t &map)
 load all gamepad objects in the specified folder, and add them to the provided map (keyed by name, see gamepad::Type::getName() ).