IGipGameControllerInputSink.OnKeyReceived(UInt64, Byte, Boolean) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
收到密钥时引发的事件。
public:
void OnKeyReceived(unsigned long long timestamp, byte keyCode, bool isPressed);
void OnKeyReceived(uint64_t const& timestamp, byte const& keyCode, bool const& isPressed);
public void OnKeyReceived(ulong timestamp, byte keyCode, bool isPressed);
function onKeyReceived(timestamp, keyCode, isPressed)
Public Sub OnKeyReceived (timestamp As ULong, keyCode As Byte, isPressed As Boolean)
参数
- timestamp
-
UInt64
unsigned long long
uint64_t
事件的时间戳。
- keyCode
-
Byte
byte
引发事件的按钮的键代码。
- isPressed
-
Boolean
bool
指示是按下还是释放键的布尔值。