[詳解]
36 #define AKMOTION_SCEPAD_HAPTICS_MODE 0x80000000
50 #define AKMOTIONSINK_STATIC_LINK_SCEPAD_FUNCTIONS \
51 struct _AkMotionInitializeScePadFunctionsHelper \
53 _AkMotionInitializeScePadFunctionsHelper() \
55 AkMotionInitializeScePadFunctions(\
56 (AK::_akmotionPadGetHandle)scePadGetHandle, \
57 (AK::_akmotionPadGetContainerIdInformation)scePadGetContainerIdInformation, \
58 (AK::_akmotionPadGetControllerType)scePadGetControllerType, \
59 (AK::_akmotionPadSetVibrationMode)scePadSetVibrationMode, \
60 (AK::_akmotionPadSetVibration)scePadSetVibration); \
62 } AkMotionInitializeScePadFunctionsHelper;
64 #define AKMOTIONSINK_DYNAMIC_LINK_SCEPAD_FUNCTIONS \
66 HMODULE _akmotion_Hmod; \
67 if (GetModuleHandleExA(GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT, "AkMotion", &_akmotion_Hmod)) \
69 typedef int(*_akmotionPadInitFunc)( \
70 AK::_akmotionPadGetHandle in_pPadGetHandle, \
71 AK::_akmotionPadGetContainerIdInformation in_pPadGetContainerIdInformation, \
72 AK::_akmotionPadGetControllerType in_pPadGetControllerType, \
73 AK::_akmotionPadSetVibrationMode in_pPadSetVibrationMode, \
74 AK::_akmotionPadSetVibration in_pPadSetVibration); \
75 _akmotionPadInitFunc _akmotion_pInitFn = reinterpret_cast<_akmotionPadInitFunc>( reinterpret_cast<void*>( \
76 GetProcAddress(_akmotion_Hmod, "AkMotionInitializeScePadFunctions") \
79 (AK::_akmotionPadGetHandle)scePadGetHandle, \
80 (AK::_akmotionPadGetContainerIdInformation)scePadGetContainerIdInformation, \
81 (AK::_akmotionPadGetControllerType)scePadGetControllerType, \
82 (AK::_akmotionPadSetVibrationMode)scePadSetVibrationMode, \
83 (AK::_akmotionPadSetVibration)scePadSetVibration); \
AK_DLLEXPORT void AkMotionInitializeScePadFunctions(AK::_akmotionPadGetHandle in_pPadGetHandle, AK::_akmotionPadGetContainerIdInformation in_pPadGetContainerIdInformation, AK::_akmotionPadGetControllerType in_pPadGetControllerType, AK::_akmotionPadSetVibrationMode in_pPadSetVibrationMode, AK::_akmotionPadSetVibration in_pPadSetVibration)
int(* _akmotionPadGetHandle)(int userId, int type, int index)
int(* _akmotionPadGetControllerType)(int handle, void *pControllerType)
int(* _akmotionPadGetContainerIdInformation)(int handle, void *pInfo)
int(* _akmotionPadSetVibration)(int handle, const void *pParam)
int(* _akmotionPadSetVibrationMode)(int handle, ScePadVibrationMode mode)
あなたのプロジェクトについて教えてください。ご不明な点はありませんか。
プロジェクトを登録していただくことで、ご利用開始のサポートをいたします。
Wwiseからはじめよう