#include "manager.h"
#include "linux-joystick/linux-joystick.h"
#include "datahash/datahash_text.h"
#include "perf/perf.h"
#include "resources/resources-internal.h"
#include "util/file.h"
Go to the source code of this file.
Namespaces | |
namespace | gamepad |
Functions | |
static smart_ptr< Map > | gamepad::readMapFromString (IN const char *val) |
static int | gamepad::getDpadFromPot (IN SourceDevice *device, IN int idx) |
static bool | gamepad::potMoved (IN SourceDevice *device, IN int idx) |
static nstream::eIterationFlag | gamepad::loadFilesCallback (IN nstream::Entry *entry, IN void *context) |
static bool | gamepad::sourceAndMapInUse (IN Manager *mgr, IN const char *deviceId, IN const char *mappingId) |
void | gamepad::getRecommendedMappings (IN Manager *manager, IN SourceDevice *device, OUT VecString &mapIds) |
helper method to return a list of recommended mappings for a given source device. | |
void | gamepad::autoconfigureGamepads (IN Manager *manager) |
helper method to autoconfigure any gamepads possible based on recommended mappings. | |
Variables | |
static const float | gamepad::s_buttonRatio = 0.2 |
static const float | gamepad::s_4potRatio = 0.08 |
static const char * | gamepad::s_gamepadExtension = "gamepad" |
static const char * | gamepad::s_mappingExtension = "map" |