共用方式為


IGipGameControllerInputSink.OnKeyReceived(UInt64, Byte, Boolean) 方法

定義

收到金鑰時引發的事件。

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

布林值,指出按下或放開按鍵。

適用於