From e2d5837f84a7f58f30403c142f3f694738afefb2 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Mon, 30 Dec 2013 12:12:53 -0600 Subject: [PATCH] Add NativeGamepadListener --- .../input/gamepad/NativeGamepadListener.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/com/limelight/input/gamepad/NativeGamepadListener.java diff --git a/src/com/limelight/input/gamepad/NativeGamepadListener.java b/src/com/limelight/input/gamepad/NativeGamepadListener.java new file mode 100644 index 0000000..95bbd54 --- /dev/null +++ b/src/com/limelight/input/gamepad/NativeGamepadListener.java @@ -0,0 +1,13 @@ +package com.limelight.input.gamepad; + +public interface NativeGamepadListener { + public void deviceAttached(int deviceId, int numButtons, int numAxes); + + public void deviceRemoved(int deviceId); + + public void buttonDown(int deviceId, int buttonId); + + public void buttonUp(int deviceId, int buttonId); + + public void axisMoved(int deviceId, int axisId, float value, float lastValue); +}