Skip to content

Commit

Permalink
Minor HID cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkwhoffmann committed Jan 18, 2024
1 parent 5857bad commit 1cfbb36
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Emulator/Peripherals/Drive/HardDrive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ HardDrive::connect()

} catch (VAError &e) {

warn("Error: %s\n", e.what());
warn("%s\n", e.what());
}
}

Expand Down
8 changes: 4 additions & 4 deletions GUI/Peripherals/GamePadManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ class GamePadManager {
lock.lock(); defer { lock.unlock() }

debug(.hid)
// device.listProperties()
if (Int.hid != 0) { device.listProperties() }

// Ignore internal devices
if device.isInternalDevice { return }

Expand All @@ -195,7 +195,7 @@ class GamePadManager {
parent.toolbar.validateVisibleItems()
myAppDelegate.deviceAdded()

listDevices()
if Int.hid != 0 { listDevices() }
}

func addDevice(slot: Int, device: IOHIDDevice) {
Expand Down Expand Up @@ -242,7 +242,7 @@ class GamePadManager {
parent.toolbar.validateVisibleItems()
myAppDelegate.deviceAdded()

listDevices()
if Int.hid != 0 { listDevices() }
}

func listDevices() {
Expand Down

0 comments on commit 1cfbb36

Please sign in to comment.