Skip to content

Commit 2262f0f

Browse files
committed
Convert Android Joystick to SDL
1 parent 0e18f48 commit 2262f0f

23 files changed

+3429
-1341
lines changed

android/AndroidManifest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
<uses-feature android:name="android.hardware.location.network" android:required="false" />
1717
<uses-feature android:name="android.hardware.usb.host" android:required="false" />
1818
<uses-feature android:name="android.hardware.wifi" android:required="false" />
19+
<uses-feature android:name="android.hardware.gamepad" android:required="false" />
1920

2021
<supports-screens
2122
android:anyDensity="true"
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package org.libsdl.app;
2+
3+
import android.hardware.usb.UsbDevice;
4+
5+
interface HIDDevice
6+
{
7+
public int getId();
8+
public int getVendorId();
9+
public int getProductId();
10+
public String getSerialNumber();
11+
public int getVersion();
12+
public String getManufacturerName();
13+
public String getProductName();
14+
public UsbDevice getDevice();
15+
public boolean open();
16+
public int writeReport(byte[] report, boolean feature);
17+
public boolean readReport(byte[] report, boolean feature);
18+
public void setFrozen(boolean frozen);
19+
public void close();
20+
public void shutdown();
21+
}

0 commit comments

Comments
 (0)