Skip to main content

IGameInput::RegisterGuideButtonCallback

已弃用。 此方法已在 GameInput v1 中移除,当前 API 中不再提供。请改用 RegisterSystemButtonCallback
注册一个回调函数,在按下或释放 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
最后修改于 2026年8月13日