Home
last modified time | relevance | path

Searched refs:JOYSTICK (Results 1 – 25 of 458) sorted by relevance

12345678910>>...19

/dports/multimedia/kodi/xbmc-19.3-Matrix/xbmc/peripherals/addons/
H A DAddonButtonMap.h22 class CAddonButtonMap : public KODI::JOYSTICK::IButtonMap
45 KODI::JOYSTICK::FEATURE_TYPE GetFeatureType(const KODI::JOYSTICK::FeatureName& feature) override;
47 bool GetScalar(const KODI::JOYSTICK::FeatureName& feature,
50 void AddScalar(const KODI::JOYSTICK::FeatureName& feature,
79 bool GetWheel(const KODI::JOYSTICK::FeatureName& feature,
80 KODI::JOYSTICK::WHEEL_DIRECTION direction,
84 KODI::JOYSTICK::WHEEL_DIRECTION direction,
95 bool GetKey(const KODI::JOYSTICK::FeatureName& feature,
98 void AddKey(const KODI::JOYSTICK::FeatureName& feature,
113 typedef std::map<KODI::JOYSTICK::CDriverPrimitive, KODI::JOYSTICK::FeatureName> DriverMap;
[all …]
H A DPeripheralAddonTranslator.h29 static KODI::JOYSTICK::CDriverPrimitive TranslatePrimitive(
32 const KODI::JOYSTICK::CDriverPrimitive& primitive);
34 static std::vector<KODI::JOYSTICK::CDriverPrimitive> TranslatePrimitives(
37 const std::vector<KODI::JOYSTICK::CDriverPrimitive>& primitives);
42 static KODI::JOYSTICK::HAT_STATE TranslateHatState(JOYSTICK_STATE_HAT state);
44 static KODI::JOYSTICK::SEMIAXIS_DIRECTION TranslateSemiAxisDirection(
47 KODI::JOYSTICK::SEMIAXIS_DIRECTION dir);
52 static KODI::JOYSTICK::RELATIVE_POINTER_DIRECTION TranslateRelPointerDirection(
55 KODI::JOYSTICK::RELATIVE_POINTER_DIRECTION dir);
57 static KODI::JOYSTICK::FEATURE_TYPE TranslateFeatureType(JOYSTICK_FEATURE_TYPE type);
[all …]
H A DPeripheralAddonTranslator.cpp18 using namespace JOYSTICK;
393 return JOYSTICK::FEATURE_TYPE::SCALAR; in TranslateFeatureType()
399 return JOYSTICK::FEATURE_TYPE::MOTOR; in TranslateFeatureType()
405 return JOYSTICK::FEATURE_TYPE::WHEEL; in TranslateFeatureType()
409 return JOYSTICK::FEATURE_TYPE::KEY; in TranslateFeatureType()
413 return JOYSTICK::FEATURE_TYPE::UNKNOWN; in TranslateFeatureType()
420 case JOYSTICK::FEATURE_TYPE::SCALAR: in TranslateFeatureType()
426 case JOYSTICK::FEATURE_TYPE::MOTOR: in TranslateFeatureType()
432 case JOYSTICK::FEATURE_TYPE::WHEEL: in TranslateFeatureType()
434 case JOYSTICK::FEATURE_TYPE::THROTTLE: in TranslateFeatureType()
[all …]
H A DAddonButtonMap.cpp21 using namespace JOYSTICK;
184 using namespace JOYSTICK; in AddAnalogStick()
241 using namespace JOYSTICK; in AddRelativePointer()
304 using namespace JOYSTICK; in AddAccelerometer()
347 using namespace JOYSTICK; in AddWheel()
404 using namespace JOYSTICK; in AddThrottle()
515 using namespace JOYSTICK; in CreateLookupTable()
622 using namespace JOYSTICK; in GetAnalogStickIndex()
644 using namespace JOYSTICK; in GetRelativePointerIndex()
665 using namespace JOYSTICK; in GetPrimitiveIndex()
[all …]
H A DAddonInputHandling.h20 namespace JOYSTICK
43 class CAddonInputHandling : public KODI::JOYSTICK::IDriverHandler,
44 public KODI::JOYSTICK::IInputReceiver,
51 KODI::JOYSTICK::IInputHandler* handler,
52 KODI::JOYSTICK::IDriverReceiver* receiver);
66 bool OnHatMotion(unsigned int hatIndex, KODI::JOYSTICK::HAT_STATE state) override;
83 bool SetRumbleState(const KODI::JOYSTICK::FeatureName& feature, float magnitude) override;
86 std::unique_ptr<KODI::JOYSTICK::IDriverHandler> m_driverHandler;
87 std::unique_ptr<KODI::JOYSTICK::IInputReceiver> m_inputReceiver;
90 std::unique_ptr<KODI::JOYSTICK::IButtonMap> m_buttonMap;
H A DAddonButtonMapping.h20 namespace JOYSTICK
33 class CAddonButtonMapping : public KODI::JOYSTICK::IDriverHandler,
36 public KODI::JOYSTICK::IButtonMapCallback
41 KODI::JOYSTICK::IButtonMapper* mapper);
47 bool OnHatMotion(unsigned int hatIndex, KODI::JOYSTICK::HAT_STATE state) override;
69 std::unique_ptr<KODI::JOYSTICK::CButtonMapping> m_buttonMapping;
70 std::unique_ptr<KODI::JOYSTICK::IButtonMap> m_buttonMap;
/dports/multimedia/kodi/xbmc-19.3-Matrix/xbmc/games/controllers/
H A DControllerFeature.h35 JOYSTICK::FEATURE_TYPE Type(void) const { return m_type; } in Type()
36 JOYSTICK::FEATURE_CATEGORY Category(void) const { return m_category; } in Category()
45 JOYSTICK::INPUT_TYPE InputType(void) const { return m_inputType; } in InputType()
50 JOYSTICK::FEATURE_CATEGORY category,
55 JOYSTICK::FEATURE_TYPE m_type = JOYSTICK::FEATURE_TYPE::UNKNOWN;
56 JOYSTICK::FEATURE_CATEGORY m_category = JOYSTICK::FEATURE_CATEGORY::UNKNOWN;
60 JOYSTICK::INPUT_TYPE m_inputType = JOYSTICK::INPUT_TYPE::UNKNOWN;
H A DControllerTranslator.h24 static const char* TranslateFeatureType(JOYSTICK::FEATURE_TYPE type);
25 static JOYSTICK::FEATURE_TYPE TranslateFeatureType(const std::string& strType);
27 static const char* TranslateFeatureCategory(JOYSTICK::FEATURE_CATEGORY category);
28 static JOYSTICK::FEATURE_CATEGORY TranslateFeatureCategory(const std::string& strCategory);
30 static const char* TranslateInputType(JOYSTICK::INPUT_TYPE type);
31 static JOYSTICK::INPUT_TYPE TranslateInputType(const std::string& strType);
H A DController.cpp28 FeatureTypeEqual(FEATURE_TYPE type, JOYSTICK::INPUT_TYPE inputType) in FeatureTypeEqual()
40 if (inputType == JOYSTICK::INPUT_TYPE::UNKNOWN) in operator ()()
50 const JOYSTICK::INPUT_TYPE inputType;
79 JOYSTICK::INPUT_TYPE inputType /* = JOYSTICK::INPUT_TYPE::UNKNOWN */) const in FeatureCount()
96 JOYSTICK::FEATURE_TYPE CController::FeatureType(const std::string& feature) const in FeatureType()
103 return JOYSTICK::FEATURE_TYPE::UNKNOWN; in FeatureType()
106 JOYSTICK::INPUT_TYPE CController::GetInputType(const std::string& feature) const in GetInputType()
113 return JOYSTICK::INPUT_TYPE::UNKNOWN; in GetInputType()
/dports/multimedia/kodi/xbmc-19.3-Matrix/xbmc/games/controllers/windows/
H A DGUIConfigurationWizard.h38 public JOYSTICK::IButtonMapper,
59 bool AcceptsPrimitive(JOYSTICK::PRIMITIVE_TYPE type) const override { return true; } in AcceptsPrimitive()
60 bool MapPrimitive(JOYSTICK::IButtonMap* buttonMap,
62 const JOYSTICK::CDriverPrimitive& primitive) override;
63 void OnEventFrame(const JOYSTICK::IButtonMap* buttonMap, bool bMotion) override;
86 void OnMotion(const JOYSTICK::IButtonMap* buttonMap);
87 void OnMotionless(const JOYSTICK::IButtonMap* buttonMap);
98 JOYSTICK::WHEEL_DIRECTION m_wheelDirection;
99 JOYSTICK::THROTTLE_DIRECTION m_throttleDirection;
100 std::set<JOYSTICK::CDriverPrimitive> m_history; // History to avoid repeated features
[all …]
H A DGUIConfigurationWizard.cpp47 m_wheelDirection = JOYSTICK::WHEEL_DIRECTION::NONE; in InitializeState()
48 m_throttleDirection = JOYSTICK::THROTTLE_DIRECTION::NONE; in InitializeState()
136 using namespace JOYSTICK; in Process()
198 bool CGUIConfigurationWizard::MapPrimitive(JOYSTICK::IButtonMap* buttonMap, in MapPrimitive()
200 const JOYSTICK::CDriverPrimitive& primitive) in MapPrimitive()
203 using namespace JOYSTICK; in MapPrimitive()
354 void CGUIConfigurationWizard::OnEventFrame(const JOYSTICK::IButtonMap* buttonMap, bool bMotion) in OnEventFrame()
362 void CGUIConfigurationWizard::OnLateAxis(const JOYSTICK::IButtonMap* buttonMap, in OnLateAxis()
371 void CGUIConfigurationWizard::OnMotion(const JOYSTICK::IButtonMap* buttonMap) in OnMotion()
379 void CGUIConfigurationWizard::OnMotionless(const JOYSTICK::IButtonMap* buttonMap) in OnMotionless()
/dports/multimedia/kodi/xbmc-19.3-Matrix/xbmc/peripherals/devices/
H A DPeripheralJoystick.h24 namespace JOYSTICK
40 public KODI::JOYSTICK::IDriverReceiver
53 void RegisterJoystickDriverHandler(KODI::JOYSTICK::IDriverHandler* handler,
56 KODI::JOYSTICK::IDriverReceiver* GetDriverReceiver() override { return this; } in GetDriverReceiver()
61 bool OnHatMotion(unsigned int hatIndex, KODI::JOYSTICK::HAT_STATE state);
111 KODI::JOYSTICK::IDriverHandler* handler;
126 std::unique_ptr<KODI::JOYSTICK::CKeymapHandling> m_appInput;
127 std::unique_ptr<KODI::JOYSTICK::CRumbleGenerator> m_rumbleGenerator;
128 std::unique_ptr<KODI::JOYSTICK::IInputHandler> m_joystickMonitor;
129 std::unique_ptr<KODI::JOYSTICK::IButtonMap> m_buttonMap;
[all …]
H A DPeripheral.h28 namespace JOYSTICK
61 class CPeripheral : public KODI::JOYSTICK::IInputProvider,
209 virtual void RegisterJoystickDriverHandler(KODI::JOYSTICK::IDriverHandler* handler, in RegisterJoystickDriverHandler()
213 virtual void UnregisterJoystickDriverHandler(KODI::JOYSTICK::IDriverHandler* handler) {} in UnregisterJoystickDriverHandler()
228 void RegisterInputHandler(KODI::JOYSTICK::IInputHandler* handler, bool bPromiscuous) override;
229 void UnregisterInputHandler(KODI::JOYSTICK::IInputHandler* handler) override;
240 virtual void RegisterJoystickButtonMapper(KODI::JOYSTICK::IButtonMapper* mapper);
241 virtual void UnregisterJoystickButtonMapper(KODI::JOYSTICK::IButtonMapper* mapper);
243 virtual KODI::JOYSTICK::IDriverReceiver* GetDriverReceiver() { return nullptr; } in GetDriverReceiver()
278 std::map<KODI::JOYSTICK::IInputHandler*, std::unique_ptr<KODI::JOYSTICK::IDriverHandler>>
[all …]
/dports/multimedia/kodi/xbmc-19.3-Matrix/xbmc/games/controllers/dialogs/
H A DGUIDialogIgnoreInput.cpp24 bool CGUIDialogIgnoreInput::AcceptsPrimitive(JOYSTICK::PRIMITIVE_TYPE type) const in AcceptsPrimitive()
28 case JOYSTICK::PRIMITIVE_TYPE::BUTTON: in AcceptsPrimitive()
29 case JOYSTICK::PRIMITIVE_TYPE::SEMIAXIS: in AcceptsPrimitive()
47 std::back_inserter(primitives), [](const JOYSTICK::CDriverPrimitive& primitive) { in GetDialogText()
48 return JOYSTICK::CJoystickTranslator::GetPrimitiveName(primitive); in GetDialogText()
60 bool CGUIDialogIgnoreInput::MapPrimitiveInternal(JOYSTICK::IButtonMap* buttonMap, in MapPrimitiveInternal()
62 const JOYSTICK::CDriverPrimitive& primitive) in MapPrimitiveInternal()
110 bool CGUIDialogIgnoreInput::AddPrimitive(const JOYSTICK::CDriverPrimitive& primitive) in AddPrimitive()
114 if (primitive.Type() == JOYSTICK::PRIMITIVE_TYPE::BUTTON || in AddPrimitive()
115 primitive.Type() == JOYSTICK::PRIMITIVE_TYPE::SEMIAXIS) in AddPrimitive()
[all …]
H A DGUIDialogAxisDetection.cpp31 JOYSTICK::CDriverPrimitive axis(axisEntry.second, 0, JOYSTICK::SEMIAXIS_DIRECTION::POSITIVE, 1); in GetDialogText()
32 primitives.emplace_back(JOYSTICK::CJoystickTranslator::GetPrimitiveName(axis)); in GetDialogText()
43 bool CGUIDialogAxisDetection::MapPrimitiveInternal(JOYSTICK::IButtonMap* buttonMap, in MapPrimitiveInternal()
45 const JOYSTICK::CDriverPrimitive& primitive) in MapPrimitiveInternal()
47 if (primitive.Type() == JOYSTICK::PRIMITIVE_TYPE::SEMIAXIS) in MapPrimitiveInternal()
53 bool CGUIDialogAxisDetection::AcceptsPrimitive(JOYSTICK::PRIMITIVE_TYPE type) const in AcceptsPrimitive()
57 case JOYSTICK::PRIMITIVE_TYPE::SEMIAXIS: in AcceptsPrimitive()
66 void CGUIDialogAxisDetection::OnLateAxis(const JOYSTICK::IButtonMap* buttonMap, in OnLateAxis()
H A DGUIDialogButtonCapture.h23 class CGUIDialogButtonCapture : public JOYSTICK::IButtonMapper, public Observer, protected CThread
33 bool MapPrimitive(JOYSTICK::IButtonMap* buttonMap,
35 const JOYSTICK::CDriverPrimitive& primitive) override;
36 void OnEventFrame(const JOYSTICK::IButtonMap* buttonMap, bool bMotion) override {} in OnEventFrame()
37 void OnLateAxis(const JOYSTICK::IButtonMap* buttonMap, unsigned int axisIndex) override {} in OnLateAxis()
53 virtual bool MapPrimitiveInternal(JOYSTICK::IButtonMap* buttonMap,
55 const JOYSTICK::CDriverPrimitive& primitive) = 0;
H A DGUIDialogIgnoreInput.h29 bool AcceptsPrimitive(JOYSTICK::PRIMITIVE_TYPE type) const override;
35 bool MapPrimitiveInternal(JOYSTICK::IButtonMap* buttonMap,
37 const JOYSTICK::CDriverPrimitive& primitive) override;
41 bool AddPrimitive(const JOYSTICK::CDriverPrimitive& primitive);
44 std::vector<JOYSTICK::CDriverPrimitive> m_capturedPrimitives;
H A DGUIDialogAxisDetection.h29 bool AcceptsPrimitive(JOYSTICK::PRIMITIVE_TYPE type) const override;
30 void OnLateAxis(const JOYSTICK::IButtonMap* buttonMap, unsigned int axisIndex) override;
36 bool MapPrimitiveInternal(JOYSTICK::IButtonMap* buttonMap,
38 const JOYSTICK::CDriverPrimitive& primitive) override;
/dports/multimedia/kodi/xbmc-19.3-Matrix/xbmc/games/ports/
H A DPort.h18 namespace JOYSTICK
26 class CPort : public JOYSTICK::IInputHandler, public IKeymapEnvironment
29 CPort(JOYSTICK::IInputHandler* gameInput);
32 void RegisterInput(JOYSTICK::IInputProvider* provider);
33 void UnregisterInput(JOYSTICK::IInputProvider* provider);
35 JOYSTICK::IInputHandler* InputHandler() { return m_gameInput; } in InputHandler()
67 JOYSTICK::IInputHandler* const m_gameInput;
70 std::unique_ptr<JOYSTICK::CKeymapHandling> m_appInput;
73 std::unique_ptr<JOYSTICK::IInputHandler> m_inputSink;
/dports/multimedia/kodi/xbmc-19.3-Matrix/xbmc/games/controllers/guicontrols/
H A DGUIFeatureTranslator.cpp14 BUTTON_TYPE CGUIFeatureTranslator::GetButtonType(JOYSTICK::FEATURE_TYPE featureType) in GetButtonType()
18 case JOYSTICK::FEATURE_TYPE::SCALAR: in GetButtonType()
19 case JOYSTICK::FEATURE_TYPE::KEY: in GetButtonType()
22 case JOYSTICK::FEATURE_TYPE::ANALOG_STICK: in GetButtonType()
25 case JOYSTICK::FEATURE_TYPE::RELPOINTER: in GetButtonType()
28 case JOYSTICK::FEATURE_TYPE::WHEEL: in GetButtonType()
31 case JOYSTICK::FEATURE_TYPE::THROTTLE: in GetButtonType()
H A DGUIFeatureButton.h40 JOYSTICK::WHEEL_DIRECTION GetWheelDirection() const override in GetWheelDirection()
42 return JOYSTICK::WHEEL_DIRECTION::NONE; in GetWheelDirection()
44 JOYSTICK::THROTTLE_DIRECTION GetThrottleDirection() const override in GetThrottleDirection()
46 return JOYSTICK::THROTTLE_DIRECTION::NONE; in GetThrottleDirection()
/dports/games/ultimatestunts/ultimatestunts-srcdata-0771/ultimatestunts/
H A Dgamewinsystem.cpp39 #define JOYSTICK (SDLK_LAST) macro
228 JOYSTICK + JOY_NUMCODES*i + JOY_UP, in initKeyNameTranslationTable()
231 JOYSTICK + JOY_NUMCODES*i + JOY_DOWN, in initKeyNameTranslationTable()
234 JOYSTICK + JOY_NUMCODES*i + JOY_LEFT, in initKeyNameTranslationTable()
237 JOYSTICK + JOY_NUMCODES*i + JOY_RIGHT, in initKeyNameTranslationTable()
242 JOYSTICK + JOY_NUMCODES*i + JOY_BTN+j , in initKeyNameTranslationTable()
302 int joyID = (code - JOYSTICK) / JOY_NUMCODES; in getKeyCodeState()
327 int joyID = (code - JOYSTICK) / JOY_NUMCODES; in keyCodeWasPressed()
349 int joyID = (code - JOYSTICK) / JOY_NUMCODES; in getControlCodeState()
358 int direction = code - JOYSTICK - JOY_NUMCODES*joyID; in getControlCodeState()
[all …]
/dports/multimedia/kodi-addon-peripheral.joystick/peripheral.joystick-1.7.1-Matrix/src/log/
H A DLog.h17 #define esyslog(...) JOYSTICK::CLog::Get().Log(SYS_LOG_ERROR, __VA_ARGS__)
21 #define isyslog(...) JOYSTICK::CLog::Get().Log(SYS_LOG_INFO, __VA_ARGS__)
25 #define dsyslog(...) JOYSTICK::CLog::Get().Log(SYS_LOG_DEBUG, __VA_ARGS__)
30 namespace JOYSTICK
/dports/games/xkoules/koules1.4/xlib/
H A DImakefile17 #ifdef JOYSTICK
33 DEFINES = -DONLYANSI $(JOYSTICK1) $(NET) $(MITSHM1) $(HAVEUSLEEP1) $(SYSDEFS) $(JOYSTICK) -I.\
42 DEFINES = -DONLYANSI -DRSOUND $(JOYSTICK1) $(NET) $(MITSHM1) $(HAVEUSLEEP1) $(SYSDEFS) $(JOYSTICK) …
53 … = -DONLYANSI -DNAS_SOUND $(JOYSTICK1) $(NET) $(MITSHM1) $(HAVEUSLEEP1) $(SYSDEFS) $(JOYSTICK) -I.\
60 DEFINES = -DONLYANSI -DSOUND $(JOYSTICK1) $(NET) $(MITSHM1) $(HAVEUSLEEP1) $(SYSDEFS) $(JOYSTICK) -…
/dports/multimedia/kodi/xbmc-19.3-Matrix/xbmc/input/
H A DJoystickMapper.cpp51 JOYSTICK::ANALOG_STICK_DIRECTION dir; in MapActions()
61 JOYSTICK::KeymapAction action = { in MapActions()
67 keymap->MapAction(windowID, JOYSTICK::CJoystickUtils::MakeKeyName(feature, dir), in MapActions()
104 JOYSTICK::ANALOG_STICK_DIRECTION& dir, in DeserializeButton()
129 dir = JOYSTICK::ANALOG_STICK_DIRECTION::NONE; in DeserializeButton()
132 dir = JOYSTICK::CJoystickTranslator::TranslateAnalogStickDirection(szDirection); in DeserializeButton()

12345678910>>...19