Game Control Plus  1.2.2
 All Classes Namespaces Functions Variables Pages
org.gamecontrolplus.gui.KConfigDeviceUI Class Reference
Inheritance diagram for org.gamecontrolplus.gui.KConfigDeviceUI:

Public Member Functions

 KConfigDeviceUI (PApplet app, Configuration config, ControlDevice device)
 
void verify_click (MButton button, MEvent event)
 
void use_device_click (MButton button, MEvent event)
 
void quit_click (MButton button, MEvent event)
 
void clear_click (MButton button, MEvent event)
 
synchronized void pre (PApplet appc, MWinData data)
 
synchronized void mouse (PApplet appc, MWinData data, MouseEvent mevent)
 
synchronized void draw (PApplet appc, MWinData data)
 
MWindow getWindow ()
 
int status ()
 
void finishedWith ()
 

Package Functions

void current (KConnector connector)
 

Package Attributes

float scale
 
float input_UI_height
 
float desc_UI_height
 
float element_UI_gap
 
float input_UI_length
 
float desc_UI_length
 
float textfield_gap
 
float indicator_d
 
float connector_size_r
 
float connector_size_d
 
float fontSize
 
Font font
 
float spaceNeeded
 
float spaceForDescs
 
float spaceForInputs
 

Private Member Functions

void createGUI (PApplet app)
 
void createMetrics ()
 
void addConfigToGUI (float spaceNeeded, float spaceForDescs, float spaceForInputs)
 
void makeExistingConnections ()
 
void addToReport (String line, boolean isError)
 
boolean verifyConfig (boolean chain)
 
boolean saveConfig ()
 

Private Attributes

final PApplet app
 
final ControlIO controlIO
 
MWindow window
 
MTextArea txaStatus
 
int status = WORKING
 
final ControlDevice device
 
Configuration config
 
KConnector start = null
 
KConnector end = null
 
KConnector current = null
 
int winHeight
 
boolean dragging = false
 
List< KBaseuiElements = new ArrayList<KBase>()
 
List< KConnectoruiConnections = new ArrayList<KConnector>()
 
Map< String, KBaseInputdevInpKeys = new HashMap<String, KBaseInput>()
 
Map< String, KDescriptordescriptors = new HashMap<String, KDescriptor>()
 
StringBuffer report
 
int errCount = 0
 

Additional Inherited Members

- Public Attributes inherited from org.gamecontrolplus.gui.KConstants
final float INPUT_UI_HEIGHT = 24
 
final float DESC_UI_HEIGHT = 30
 
final float ELEMENT_UI_GAP = 4
 
final float INPUT_UI_LENGTH = 220
 
final float DESC_UI_LENGTH = 300
 
final float TEXTFIELD_GAP = 4
 
final float INICATOR_D = 12
 
final float CONNECTOR_SIZE_R = 10
 
final float CONNECTOR_SIZE_R2 = CONNECTOR_SIZE_R * CONNECTOR_SIZE_R
 
final float CONNECTOR_SIZE_D = 2 * CONNECTOR_SIZE_R
 
final int INPUT = 0x01
 
final int DESC = 0x02
 
final float FONT_SIZE = 12
 
final int PANEL_WIDTH = 320
 
final int PANEL_HEIGHT = 280
 
final int UI_BUTTON = 0x01
 
final int UI_COOLIEHAT = 0x02
 
final int UI_SLIDER = 0x03
 
final int UI_DESCRIPTOR = 0x04
 
final int[] UI_E_BACK = new int[] { 0, 0xFFFFD0D0, 0xFFD0FFD0, 0xFFD0D0FF, 0xFFFFD0D0 }
 
final int BACKGROUND = 0xFFF0FFF0
 
final int PANEL = 0xFF208020
 
final int BORDER = 0xFF4040A0
 
final int CONNECTION = 0xFF8080A0
 
final int HIGHLIGHT = 0xFFFF40FF
 
final int NAME_AREA = 0xFFC8C8FF
 
final int CONNECTOR = 0xFFFFC0FF
 
final int TEXTFILL = 0xFF000080
 
final int PRESSED = 0xFFFF3030
 
final int RELEASED = 0xFF802020
 
final int SLIDER_CURSOR = 0xFFFF4040
 
int WORKING = 0
 
int CANCELLED = 1
 
int FINISHED = 2
 
int NOT_OVER = 0x0000
 
int OVER_CONNECTOR = 0x0100
 
int ON_PRESS = 0
 
int ON_RELEASE = 1
 
int WHILE_PRESS = 2
 
int BUTTON_TYPE = 1
 
int HAT_TYPE = 2
 
int SLIDER_TYPE = 3
 
String SEPARATOR = "\t"
 

Member Function Documentation

void org.gamecontrolplus.gui.KConfigDeviceUI.makeExistingConnections ( )
private

Make existing connections between game inputs and device inputs based on type and name.

boolean org.gamecontrolplus.gui.KConfigDeviceUI.verifyConfig ( boolean  chain)
private

Verify the configuration

Parameters
chain
Returns