Import some SDL code and use it for controller classification

Imported as of 4aee17b039981f2bb79892f3d3e3e17bd6b66530
This commit is contained in:
Cameron Gutman
2023-07-02 20:20:55 -05:00
parent 5f4496036c
commit 4e1b778f31
9 changed files with 1035 additions and 1 deletions

View File

@@ -407,5 +407,11 @@ public class MoonBridge {
// The RTT is in the top 32 bits, and the RTT variance is in the bottom 32 bits
public static native long getEstimatedRttInfo();
public static native byte guessControllerType(int vendorId, int productId);
public static native boolean guessControllerHasPaddles(int vendorId, int productId);
public static native boolean guessControllerHasShareButton(int vendorId, int productId);
public static native void init();
}