C# Class NewCustomInputManager, maptron

Inheritance: MonoBehaviour
显示文件 Open project: uclagamelab/maptron Class Usage Examples

Public Properties

Property Type Description
BackgroundTexture Texture
DescriptionTexture Texture
ErrorSound UnityEngine.AudioClip
EvenButtonTexture Texture
GUIDepth int
GeneralSkin UnityEngine.GUISkin
JoystickTexture Texture
MouseTexture Texture
OddButtonTexture Texture
SliderTexture Texture
TitleTexture Texture

Public Methods

Method Description
Awake ( ) : void
ClearKeys ( KeyConfig, kc, EditStates es, bool forjoy = false ) : void
ClearKeys ( KeyConfig, kc, bool forjoy = false ) : void
CloseEditor ( ) : bool
DeleteSavedConfig ( string name ) : void
DisplayError ( string e ) : void
DoEditKeyWork ( ) : void
DoNavigationWork ( ) : void
DrawBidirLabels ( KeyConfig, kc, Vector2 dim, bool forJoy = false ) : void
Get ( ) : NewCustomInputManager,
GetAxis ( string name ) : float
GetKey ( KeyCode, kc ) : bool
GetKey ( int player, JoyCode jc ) : bool
GetKey ( string name ) : bool
GetKeyDown ( KeyCode, kc ) : bool
GetKeyDown ( int player, JoyCode jc ) : bool
GetKeyDown ( string name ) : bool
GetKeyUp ( KeyCode, kc ) : bool
GetKeyUp ( int player, JoyCode jc ) : bool
GetKeyUp ( string name ) : bool
GetMouseButton ( int button ) : bool
GetMouseButtonDown ( int button ) : bool
GetMouseButtonUp ( int button ) : bool
GetMousePosition ( ) : Vector2
GetReference ( ) : NewCustomInputManager,
IsAxis ( string name ) : bool
LoadEditorConfig ( ) : bool
NavigateFocus ( int row, int col ) : void
OnGUI ( ) : void
OpenEditor ( ) : bool
ResetToDefault ( Hashtable &cfg ) : void
SaveEditorConfig ( ) : bool
SetupBidirectionalLinks ( Hashtable cfg ) : void
Start ( ) : void
Update ( ) : void
isOpen ( ) : bool

Private Methods

Method Description
DrawBidirAxisButton ( int pos, KeyConfig, kc, float width ) : int
DrawKeyConfigButton ( int pos, KeyConfig, kc, float width ) : int
EditConfig ( KeyConfig, kc, bool forJoy = false ) : bool
EditKey ( KeyConfig, config, EditStates es, JoyAnalog ja, int jplayer ) : bool
EditKey ( KeyConfig, config, EditStates es, JoyCode jc, int jplayer ) : bool
EditKey ( KeyConfig, config, EditStates es, KeyCode, kc ) : bool
EditKey ( KeyConfig, config, EditStates es, MouseAxes ma ) : bool
EditMouseKey ( KeyConfig, config, EditStates es, int button ) : bool
FindKey ( Hashtable cfg, JoyAnalog ja, int jplayer, ArrayList &keyConfigList ) : bool
FindKey ( Hashtable cfg, JoyCode jc, int jplayer, ArrayList &keyConfigList ) : bool
FindKey ( Hashtable cfg, KeyCode, kc, ArrayList &keyConfigList ) : bool
FindKey ( Hashtable cfg, MouseAxes ma, ArrayList &keyConfigList ) : bool
FindMouseKey ( Hashtable cfg, int button, ArrayList &keyConfigList ) : bool
GetButtonString ( KeyConfig, kc, bool forJoy = false ) : string
GetControllerKeyName ( JoyAnalog ja, int jplayer ) : string
GetControllerKeyName ( JoyCode jc, int jplayer ) : string
GetKey ( int player, int key ) : bool
GetKeyDown ( int player, int key ) : bool
GetKeyUp ( int player, int key ) : bool
HasKey ( KeyConfig, config, JoyAnalog ja, int jplayer ) : bool
HasKey ( KeyConfig, config, JoyCode jc, int jplayer ) : bool
HasKey ( KeyConfig, config, KeyCode, kc ) : bool
HasKey ( KeyConfig, config, MouseAxes ma ) : bool
HasKey ( KeyConfig, config, int k, int jplayer ) : bool
HasMouseKey ( KeyConfig, config, int button ) : bool
LoadConfig ( Hashtable &cfg, string name ) : bool
RemoveKey ( Hashtable cfg, JoyAnalog ja, int jplayer, KeyConfig, except ) : bool
RemoveKey ( Hashtable cfg, JoyCode jc, int jplayer, KeyConfig, except ) : bool
RemoveKey ( Hashtable cfg, KeyCode, kc, KeyConfig, except ) : bool
RemoveKey ( Hashtable cfg, MouseAxes ma, KeyConfig, except ) : bool
RemoveMouseKey ( Hashtable cfg, int button, KeyConfig, except ) : bool
SaveChanges ( ) : bool
SaveOutConfig ( Hashtable &cfg, string name ) : bool
isMissingInput ( KeyConfig, kc ) : bool
isMissingJoystickInput ( KeyConfig, kc ) : bool
isMissingKeyboardInput ( KeyConfig, kc ) : bool

Method Details

Awake() public method

public Awake ( ) : void
return void

ClearKeys() public method

public ClearKeys ( KeyConfig, kc, EditStates es, bool forjoy = false ) : void
kc KeyConfig,
es EditStates
forjoy bool
return void

ClearKeys() public method

public ClearKeys ( KeyConfig, kc, bool forjoy = false ) : void
kc KeyConfig,
forjoy bool
return void

CloseEditor() public method

public CloseEditor ( ) : bool
return bool

DeleteSavedConfig() public method

public DeleteSavedConfig ( string name ) : void
name string
return void

DisplayError() public method

public DisplayError ( string e ) : void
e string
return void

DoEditKeyWork() public method

public DoEditKeyWork ( ) : void
return void

DoNavigationWork() public method

public DoNavigationWork ( ) : void
return void

DrawBidirLabels() public method

public DrawBidirLabels ( KeyConfig, kc, Vector2 dim, bool forJoy = false ) : void
kc KeyConfig,
dim Vector2
forJoy bool
return void

Get() public static method

public static Get ( ) : NewCustomInputManager,
return NewCustomInputManager,

GetAxis() public method

public GetAxis ( string name ) : float
name string
return float

GetKey() public method

public GetKey ( KeyCode, kc ) : bool
kc KeyCode,
return bool

GetKey() public method

public GetKey ( int player, JoyCode jc ) : bool
player int
jc JoyCode
return bool

GetKey() public method

public GetKey ( string name ) : bool
name string
return bool

GetKeyDown() public method

public GetKeyDown ( KeyCode, kc ) : bool
kc KeyCode,
return bool

GetKeyDown() public method

public GetKeyDown ( int player, JoyCode jc ) : bool
player int
jc JoyCode
return bool

GetKeyDown() public method

public GetKeyDown ( string name ) : bool
name string
return bool

GetKeyUp() public method

public GetKeyUp ( KeyCode, kc ) : bool
kc KeyCode,
return bool

GetKeyUp() public method

public GetKeyUp ( int player, JoyCode jc ) : bool
player int
jc JoyCode
return bool

GetKeyUp() public method

public GetKeyUp ( string name ) : bool
name string
return bool

GetMouseButton() public method

public GetMouseButton ( int button ) : bool
button int
return bool

GetMouseButtonDown() public method

public GetMouseButtonDown ( int button ) : bool
button int
return bool

GetMouseButtonUp() public method

public GetMouseButtonUp ( int button ) : bool
button int
return bool

GetMousePosition() public method

public GetMousePosition ( ) : Vector2
return Vector2

GetReference() public static method

public static GetReference ( ) : NewCustomInputManager,
return NewCustomInputManager,

IsAxis() public method

public IsAxis ( string name ) : bool
name string
return bool

LoadEditorConfig() public method

public LoadEditorConfig ( ) : bool
return bool

NavigateFocus() public method

public NavigateFocus ( int row, int col ) : void
row int
col int
return void

OnGUI() public method

public OnGUI ( ) : void
return void

OpenEditor() public method

public OpenEditor ( ) : bool
return bool

ResetToDefault() public method

public ResetToDefault ( Hashtable &cfg ) : void
cfg Hashtable
return void

SaveEditorConfig() public method

public SaveEditorConfig ( ) : bool
return bool

SetupBidirectionalLinks() public method

public SetupBidirectionalLinks ( Hashtable cfg ) : void
cfg Hashtable
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

isOpen() public method

public isOpen ( ) : bool
return bool

Property Details

BackgroundTexture public_oe property

public Texture BackgroundTexture
return Texture

DescriptionTexture public_oe property

public Texture DescriptionTexture
return Texture

ErrorSound public_oe property

public AudioClip,UnityEngine ErrorSound
return UnityEngine.AudioClip

EvenButtonTexture public_oe property

public Texture EvenButtonTexture
return Texture

GUIDepth public_oe property

public int GUIDepth
return int

GeneralSkin public_oe property

public GUISkin,UnityEngine GeneralSkin
return UnityEngine.GUISkin

JoystickTexture public_oe property

public Texture JoystickTexture
return Texture

MouseTexture public_oe property

public Texture MouseTexture
return Texture

OddButtonTexture public_oe property

public Texture OddButtonTexture
return Texture

SliderTexture public_oe property

public Texture SliderTexture
return Texture

TitleTexture public_oe property

public Texture TitleTexture
return Texture