mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-04-12 10:56:04 +00:00
Removed deprecated method and renamed some classes. Created a new package to separate gamepad classes from keyboard/mouse classes
This commit is contained in:
30
src/com/limelight/input/gamepad/GamepadComponent.java
Normal file
30
src/com/limelight/input/gamepad/GamepadComponent.java
Normal file
@@ -0,0 +1,30 @@
|
||||
package com.limelight.input.gamepad;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import javax.swing.JLabel;
|
||||
|
||||
public enum GamepadComponent implements Serializable {
|
||||
BTN_A("Button 1 (A)", false), BTN_X("Button 2 (X)", false), BTN_Y("Button 3 (Y)", false), BTN_B("Button 4 (B)", false),
|
||||
DPAD_UP("D-pad Up", false), DPAD_DOWN("D-pad Down", false), DPAD_LEFT("D-pad Left", false), DPAD_RIGHT("D-pad Right", false),
|
||||
LS_X("Left Stick X", true), LS_Y("Left Stick Y", true), RS_X("Right Stick X", true), RS_Y("Right Stick Y", true),
|
||||
LS_THUMB("Left Stick Button", false), RS_THUMB("Right Stick Button", false),
|
||||
LT("Left Trigger", true), RT("Right Trigger", true), LB("Left Bumper", false), RB("Right Bumper", false),
|
||||
BTN_START("Start Button", false), BTN_BACK("Back Button", false), BTN_SPECIAL("Special Button", false);
|
||||
|
||||
private JLabel label;
|
||||
private boolean analog;
|
||||
|
||||
private GamepadComponent(String name, boolean analog) {
|
||||
this.label = new JLabel(name);
|
||||
this.analog = analog;
|
||||
}
|
||||
|
||||
public JLabel getLabel() {
|
||||
return label;
|
||||
}
|
||||
|
||||
public boolean isAnalog() {
|
||||
return analog;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user