Skip to content

Commit

Permalink
Update gcemuhook, use MAC_UNAVAILABLE constant
Browse files Browse the repository at this point in the history
  • Loading branch information
v1993 committed Sep 23, 2023
1 parent dac63e0 commit 4d9662e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ meson install -C build
```bash
cd evdevhook2
git pull
meson subprojects update
meson compile -C build
# Optional
meson install -C build
Expand Down
4 changes: 2 additions & 2 deletions src/EvdevCemuhookDevice.vala
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace Evdevhook {
private uint64 uniq_to_mac(string? uniq) {
if (uniq == null) {
debug("Device with no uniq set");
return 0;
return Cemuhook.MAC_UNAVAILABLE;
}

var regex = /^([[:xdigit:]][[:xdigit:]]):([[:xdigit:]][[:xdigit:]]):([[:xdigit:]][[:xdigit:]]):([[:xdigit:]][[:xdigit:]]):([[:xdigit:]][[:xdigit:]]):([[:xdigit:]][[:xdigit:]])$/;
Expand Down Expand Up @@ -132,7 +132,7 @@ namespace Evdevhook {
private Cemuhook.BatteryStatus battery_status = NA;
private bool has_timestamp_event = false;
private uint64 motion_timestamp = 0;
private uint64 mac = 0;
private uint64 mac = Cemuhook.MAC_UNAVAILABLE;

private int32 axis_center[Linux.Input.ABS_RZ + 1];
private int32 axis_resolution[Linux.Input.ABS_RZ + 1];
Expand Down
2 changes: 1 addition & 1 deletion subprojects/gcemuhook.wrap
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[wrap-git]
url = https://github.com/v1993/gcemuhook.git
push-url = [email protected]:v1993/gcemuhook.git
revision = acde07238a16c78e39f4aee241ab7ae53b46cde6
revision = 91ef61cca809f5f3b9fa6e5304aba284a56c06dc
depth = 1

0 comments on commit 4d9662e

Please sign in to comment.