mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-07 20:31:51 +09:00
added sources for Slick
Former-commit-id: 1647fa32ef6894bd7db44f741f07c2f4dcdf9054 Former-commit-id: 0e5810dcfbe1fd59b13e7cabe9f1e93c5542da2d
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package org.newdawn.slick.command;
|
||||
|
||||
/**
|
||||
* A control indicating that a gamepad/joystick button must be pressed
|
||||
* or released to invoke an command.
|
||||
*
|
||||
* @author kevin
|
||||
*/
|
||||
public class ControllerButtonControl extends ControllerControl {
|
||||
|
||||
/**
|
||||
* Create a new control based on a controller input
|
||||
*
|
||||
* @param controllerIndex The index of the controller to listen to
|
||||
* @param button The index of the button that causes the command
|
||||
*/
|
||||
public ControllerButtonControl(int controllerIndex, int button) {
|
||||
super(controllerIndex, BUTTON_EVENT, button);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user