mirror of
https://github.com/shadowfacts/jinput-arm64.git
synced 2026-04-21 06:14:11 +00:00
Couple if inux rumbler differences, including including the added file
This commit is contained in:
parent
df432c29ae
commit
d4c72ba15c
2 changed files with 45 additions and 9 deletions
|
|
@ -0,0 +1,29 @@
|
|||
package net.java.games.input;
|
||||
|
||||
import net.java.games.input.Component.Identifier;
|
||||
|
||||
public class LinuxDeviceRumbler implements Rumbler {
|
||||
|
||||
private int deviceID;
|
||||
|
||||
public LinuxDeviceRumbler(int deviceID) {
|
||||
this.deviceID = deviceID;
|
||||
}
|
||||
|
||||
public void rumble(float intensity) {
|
||||
// TODO Auto-generated method stub
|
||||
nativeRumble(deviceID, intensity);
|
||||
}
|
||||
|
||||
public String getAxisName() {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
public Identifier getAxisIdentifier() {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
private native void nativeRumble(int deviceID, float intensity);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue