Added support for GPIO joystick
Users can now simply test on their own pc without argument added to the launch file
This commit is contained in:
@@ -23,7 +23,7 @@ public class Window extends JFrame {
|
||||
super("Arcade");
|
||||
setSize(1280, 1024);
|
||||
|
||||
this.ON_RASP = ON_RASP;
|
||||
Window.ON_RASP = ON_RASP;
|
||||
System.out.println(ON_RASP);
|
||||
|
||||
//Set window close listener
|
||||
@@ -56,8 +56,10 @@ public class Window extends JFrame {
|
||||
setContentPane(view);
|
||||
|
||||
//Create EventListeners
|
||||
new GPIOListener();
|
||||
addKeyListener(jsh);
|
||||
if(!Window.ON_RASP){
|
||||
addKeyListener(bth);
|
||||
addKeyListener(jsh);
|
||||
}
|
||||
bth.addButtonListener(control);
|
||||
jsh.addJoystickListener(control);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user