11#ifndef INCGUARD_MGL_IOKIT_HID_AXIS_H_1610554308
12#define INCGUARD_MGL_IOKIT_HID_AXIS_H_1610554308
15#if defined(MGL_GAMEPAD_DELEGATE_ENABLE_IOKIT_HID)
17#include <IOKit/hid/IOHIDManager.h>
19namespace MGL::Input::IOKitHID
25 void SetParameter(IOHIDElementRef elemRef)
noexcept;
26 [[nodiscard]]
float GetValue(int32_t value)
const noexcept;
36 [[nodiscard]]
constexpr bool IsPositive(int32_t value)
const noexcept
38 return (_isAvailable && (
static_cast<float>(value) > (_center + _threshold)));
49 [[nodiscard]]
constexpr bool IsNegative(int32_t value)
const noexcept
51 return (_isAvailable && (
static_cast<float>(value) < (_center - _threshold)));
55 bool _isAvailable{
false};
59 float _threshold{0.0f};
uint32_t GetValue(Identifier identifier) noexcept
実績の達成状況を整数値で取得
Definition mgl_achievement.h:100