Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix Java tests
  • Loading branch information
gspencergoog committed Nov 6, 2023
commit 8bb1eb779c5f6b30ef85de3ed76328e2ecbf34da
4 changes: 2 additions & 2 deletions lib/ui/window/key_data.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ enum class KeyEventDeviceType : int64_t {
// control or similar.
kDirectionalPad,

// The source is a gamepad button
// The source is a gamepad button.
kGamepad,

// The source is a joystick button
// The source is a joystick button.
kJoystick,

// The source is a device connected to an HDMI bus.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ public void serializeAndDeserializeKeyData() {
+ "41",
printBufferBytes(data1Buffer));
// `position` is considered as the message size.
assertEquals(49, data1Buffer.position());
assertEquals(57, data1Buffer.position());

data1Buffer.rewind();
final KeyData data1Loaded = new KeyData(data1Buffer);
Expand All @@ -476,7 +476,7 @@ public void serializeAndDeserializeKeyData() {
data2.type = Type.kUp;
data2.character = null;
data2.synthesized = false;
data1.deviceType = DeviceType.kDirectionalPad;
data2.deviceType = DeviceType.kDirectionalPad;

final ByteBuffer data2Buffer = data2.toBytes();

Expand Down