Skip to content

Commit

Permalink
🥺
Browse files Browse the repository at this point in the history
  • Loading branch information
umjammer committed Oct 17, 2023
1 parent d257ca7 commit 7ffdd3d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@

<dependencies>
<dependency>
<groupId>net.java.jinput</groupId>
<groupId>com.github.umjammer.jinput</groupId>
<artifactId>osx-plugin</artifactId>
<version>2.0.11v-SNAPSHOT</version>
<version>2.0.11v</version>
</dependency>

<dependency>
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/org/hid4java/macos/IOHIDDevice.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import vavix.rococoa.corefoundation.CFData;
import vavix.rococoa.corefoundation.CFIndex;
import vavix.rococoa.corefoundation.CFLib;
import vavix.rococoa.corefoundation.CFNumber;
import vavix.rococoa.corefoundation.CFRange;
import vavix.rococoa.corefoundation.CFString;
import vavix.rococoa.corefoundation.CFType;
Expand Down Expand Up @@ -126,7 +125,7 @@ private boolean try_get_ioregistry_int_property(Pointer/*io_service_t*/ service,
CFType ref = IOKitLib.INSTANCE.IORegistryEntryCreateCFProperty(service, property, CFAllocator.kCFAllocatorDefault, 0);
if (ref != null) {
if (CFLib.INSTANCE.CFGetTypeID(ref).equals(CFLib.INSTANCE.CFNumberGetTypeID())) {
result = CFLib.INSTANCE.CFNumberGetValue((CFNumber) ref, kCFNumberSInt32Type, out_val);
result = CFLib.INSTANCE.CFNumberGetValue(ref.asNumber(), kCFNumberSInt32Type, out_val);
}

CFLib.INSTANCE.CFRelease(ref);
Expand Down

0 comments on commit 7ffdd3d

Please sign in to comment.