De Selector generiek gemaakt en een instantie ApplicationSelector toegevoegd. Hierbij komen twee problemen kijken:...
This commit is contained in:
@@ -17,7 +17,7 @@ package de.hardcode.jxinput;
|
||||
* provides a basis for other interfaces.
|
||||
*
|
||||
* @see Axis
|
||||
* @see Button
|
||||
* @see SelectButton
|
||||
* @see Directional
|
||||
*
|
||||
* @author Herkules
|
||||
|
||||
@@ -13,7 +13,7 @@ import java.awt.event.KeyEvent;
|
||||
|
||||
|
||||
/**
|
||||
* Associates a keycode with a Button and handles the current state of that button.
|
||||
* Associates a keycode with a SelectButton and handles the current state of that button.
|
||||
*
|
||||
* @author Herkules
|
||||
*/
|
||||
@@ -48,7 +48,7 @@ class KeyButton
|
||||
|
||||
//*********************************************************************************************
|
||||
//
|
||||
// Implement Button
|
||||
// Implement SelectButton
|
||||
//
|
||||
//*********************************************************************************************
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ public class ButtonListener implements JXInputButtonEventListener
|
||||
|
||||
public void changed( JXInputButtonEvent ev )
|
||||
{
|
||||
System.out.println( "Button " + ev.getButton().getName() + " changed : state=" + ev.getButton().getState() );
|
||||
System.out.println( "SelectButton " + ev.getButton().getName() + " changed : state=" + ev.getButton().getState() );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -101,7 +101,7 @@ public class VirtualAxis
|
||||
public final void setIncreaseButton( Button b )
|
||||
{
|
||||
if ( null == b )
|
||||
throw new InvalidParameterException( "Button may not be null!" );
|
||||
throw new InvalidParameterException( "SelectButton may not be null!" );
|
||||
|
||||
mButtonIncrease = b;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user