IGameInput::RegisterGuideButtonCallback
注册一个回调函数,在按下或释放 Guide 按钮时调用。语法
参数
device _In_opt_类型:IGameInputDevice* 将注册的回调限定为特定设备。 context _In_opt_
类型:void* 由标题定义、传递给回调函数的上下文。 callbackFunc _In_
类型:GameInputGuidButtonCallback* 要注册的、由标题定义的回调函数。 callbackToken _Result_zeroonfailure_
类型:GameInputCallbackToken* 标识已注册回调的令牌。
返回值
类型:HRESULT 函数结果。备注
此方法已由 RegisterSystemButtonCallback 取代,后者通过 GameInputSystemButtonCallback 回调类型同时处理 Guide 和 Share 按钮事件。版本历史
另请参阅
已弃用的 GameInput API 成员IGameInput::RegisterSystemButtonCallback
GameInputGuidButtonCallback
IGameInput
