MGL(Win32)
|
ゲームパッド関連各種定義 [詳解]
#include <type_traits>
#include <string>
#include <mgl/common/mgl_bit.h>
#include <mgl/stl/mgl_stl_string.h>
クラス | |
struct | MGL::Input::PadDeviceInfo |
ゲームパッドのデバイス情報 [詳解] | |
型定義 | |
using | MGL::Input::PadButtonFlags = EnumBitFlags<PadButton> |
ゲームパッドボタンの入力状態のビットフラグ型 | |
列挙型 | |
enum class | MGL::Input::PadID : uint32_t { Invalid , Any , UniqueIDStart } |
ゲームパッドのIDを表す型 [詳解] | |
enum class | MGL::Input::PadButton : uint8_t { None = 0 , Up = 1 , Down = 2 , Left = 3 , Right = 4 , AnalogUp = 5 , AnalogDown = 6 , AnalogLeft = 7 , AnalogRight = 8 , Button01 = 9 , Button02 = 10 , Button03 = 11 , Button04 = 12 , Button05 = 13 , Button06 = 14 , Button07 = 15 , Button08 = 16 , Button09 = 17 , Button10 = 18 , Button11 = 19 , Button12 = 20 , Button13 = 21 , Button14 = 22 , Button15 = 23 , Button16 = 24 , Button17 = 25 , Button18 = 26 , Button19 = 27 , Button20 = 28 , Button21 = 29 , Cancel = 30 , Decide = 31 , L1 = Button05 , R1 = Button06 , L2 = Button07 , R2 = Button08 , PrimaryMenu = Button09 , SecondaryMenu = Button10 , Home = Button11 , L3 = Button12 , R3 = Button13 , Other1 = Button14 , Other2 = Button15 , Other3 = Button16 , Other4 = Button17 , Other5 = Button18 , Other6 = Button19 , Other7 = Button20 , Other8 = Button21 , DiaDown = Button01 , DiaRight = Button02 , DiaLeft = Button03 , DiaUp = Button04 , NintendoA = DiaRight , NintendoB = DiaDown , NintendoX = DiaUp , NintendoY = DiaLeft , XInputA = DiaDown , XInputB = DiaRight , XInputX = DiaLeft , XInputY = DiaUp , XInputMenu = PrimaryMenu , XInputView = SecondaryMenu , XInputShare = Other1 , XInputPaddle1 = Other2 , XInputPaddle2 = Other3 , XInputPaddle3 = Other4 , XInputPaddle4 = Other5 , DSCircle = DiaRight , DSCross = DiaDown , DSTriangle = DiaUp , DSSquare = DiaLeft , DSOptions = PrimaryMenu , DSShare = SecondaryMenu , DSTouchPad = Other1 , MFiA = DiaDown , MFiB = DiaRight , MFiX = DiaLeft , MFiY = DiaUp , MFiTouchSurface = Other1 } |
ゲームパッドのボタンの定義 [詳解] | |
enum class | MGL::Input::PadType : uint8_t { Disable , MFiExtended , MFiMicro , NintendoSwitch , DualShock4 , DualSense , XboxOne , GenericHID , XInput , DirectInput , Other } |
ゲームパッドの種類 [詳解] | |
enum class | MGL::Input::PadEntry : uint8_t { Player1 = 0 , Player2 , Player3 , Player4 , Player5 , Player6 , Player7 , Player8 , Reserve_Start , Reserve_MaxPlayerCount = Reserve_Start , Reserve_NoEntry , Reserve_Any , Reserve_Auto , NoEntry = Reserve_NoEntry , Any = Reserve_Any , Auto = Reserve_Auto } |
パッドのエントリータイプ [詳解] | |
enum class | MGL::Input::PadPriority : uint8_t { Low , High } |
パッドのプライオリティ [詳解] | |
関数 | |
constexpr PadButtonFlags | MGL::Input::operator| (PadButton lhs, PadButton rhs) noexcept |
ゲームパッドボタンのor演算の結果をフラグ型に変換するためのオペレータ(PadButton | PadButton) | |
変数 | |
constexpr PadButtonFlags | MGL::Input::kGamepadButtonAll = PadButtonFlags(0xFFFFFFFE) |
ゲームパッドの全てのボタンを表す定数 | |
constexpr size_t | MGL::Input::kGamepadButtonMax = 21 |
ゲームパッドのボタンの最大数 | |
constexpr size_t | MGL::Input::kGamepadEntryMax = static_cast<size_t>(PadEntry::Reserve_MaxPlayerCount) |
ゲームパッドの最大エントリー数 | |
ゲームパッド関連各種定義
|
strong |
ゲームパッドのボタンの定義
|
strong |
パッドのエントリータイプ
|
strong |
|
strong |
|
strong |