forked from gary-rowe/hid4java
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from umjammer/0.14.11v
0.14.11v
- Loading branch information
Showing
8 changed files
with
65 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,26 +10,30 @@ | |
|
||
|
||
/** | ||
* HidDeviceEvent. | ||
* HidDeviceEvent. Assuming reuse. | ||
* | ||
* @author <a href="mailto:[email protected]">Naohide Sano</a> (nsano) | ||
* @version 0.00 2023-10-08 nsano initial version <br> | ||
*/ | ||
public class HidDeviceEvent extends EventObject { | ||
|
||
/** the report id number if used or zero */ | ||
private final int reportId; | ||
private int reportId; | ||
|
||
/** the report data that contains first report id */ | ||
private final byte[] report; | ||
private final int length; | ||
private byte[] report; | ||
private int length; | ||
|
||
/** @param report a report data that contains first report id */ | ||
public HidDeviceEvent(Object source, int reportId, byte[] report, int length) { | ||
public HidDeviceEvent(Object source) { | ||
super(source); | ||
} | ||
|
||
/** @param report a report data that contains first report id */ | ||
public HidDeviceEvent set(int reportId, byte[] report, int length) { | ||
this.reportId = reportId; | ||
this.report = report; | ||
this.length = length; | ||
return this; | ||
} | ||
|
||
/** the report data that contains first report id */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters