Logo
Public Types | Public Member Functions | Public Attributes | Static Public Attributes | Properties | List of all members
Yukar.Engine.VirtualPad Class Reference

virtual pad class More...

Public Types

enum  Button {
  CHECK = 0 , DASH , JUMP , MENU ,
  CAMERA , FPS , RESET , ZOOM_PLUS ,
  ZOOM_MINUS , MAX
}
 Virtual pad button definition More...
 
enum  Stick { MOVE = 0 , MAX }
 stick type definition More...
 
enum  Slider { CAMERA_VERTICAL = 0 , CAMERA_HORIZONTAL , MAX }
 Slider type definition More...
 
enum  Mode { Normal = 0 , CameraShow , Photo , MAX }
 Definition of display state according to game state (during camera operation/during movement) More...
 
enum  ShowGadget {
  All = 0 , Logo , Title , Message ,
  MessageChoices , Event , Movie , Menu ,
  Walk , Battle
}
 Defining display states by scene More...
 
enum  InputState { BASE , KEYBOARD , GAMEPAD , TOUCHPANEL }
 For processing to determine from which device the input was last (hide if there is input from anything other than touch) More...
 

Public Member Functions

void initialize (GameMain gameMain)
 
void finalize ()
 
void update ()
 
void draw ()
 
void show (ShowGadget inShowGadget=ShowGadget.Walk, float inTime=ShowTime)
 
void hide (float inTime=ShowTime)
 
List< ButtonGadgetgetShowGadget (ShowGadget inShowGadget)
 
List< ButtonGadgetgetShowGadget (ShowGadget inShowGadget, ref List< ButtonGadget > outDisableGadget, ref List< ButtonGadget > outHideGadget)
 
List< ButtonGadgetgetCameraGadget ()
 
ButtonGadget getButton (Button inButton)
 
StickGadget getStick (Stick inStick)
 
SliderGadget getSlider (Slider inSlider)
 
bool getValue (Input.KeyStates keyState, ref int outValue)
 
SharpKmyMath.Vector2 getAxis ()
 

Public Attributes

Touch mTouch = Touch.GetInstance()
 
bool mapFixCamera = true
 
bool mapFixCameraMode = true
 
bool mEnable = true
 

Static Public Attributes

static InputState inputState = InputState.BASE
 

Properties

Touch Touch [get]
 
bool Enable [get, set]
 
Yukar.Engine.GameMain GameMain [get, set]
 

Detailed Description

virtual pad class

Member Enumeration Documentation

◆ Button

Virtual pad button definition

Enumerator
CHECK 
DASH 
JUMP 
MENU 
CAMERA 
FPS 
RESET 
ZOOM_PLUS 
ZOOM_MINUS 
MAX 

◆ InputState

For processing to determine from which device the input was last (hide if there is input from anything other than touch)

Enumerator
BASE 
KEYBOARD 
GAMEPAD 
TOUCHPANEL 

◆ Mode

Definition of display state according to game state (during camera operation/during movement)

Enumerator
Normal 
CameraShow 
Photo 
MAX 

◆ ShowGadget

Defining display states by scene

Enumerator
All 
Logo 
Title 
Message 
MessageChoices 
Event 
Movie 
Menu 
Walk 
Battle 

◆ Slider

Slider type definition

Enumerator
CAMERA_VERTICAL 
CAMERA_HORIZONTAL 
MAX 

◆ Stick

stick type definition

Enumerator
MOVE 
MAX 

Member Function Documentation

◆ draw()

void Yukar.Engine.VirtualPad.draw ( )

◆ finalize()

void Yukar.Engine.VirtualPad.finalize ( )

◆ getAxis()

SharpKmyMath.Vector2 Yukar.Engine.VirtualPad.getAxis ( )

◆ getButton()

ButtonGadget Yukar.Engine.VirtualPad.getButton ( Button  inButton)

◆ getCameraGadget()

List< ButtonGadget > Yukar.Engine.VirtualPad.getCameraGadget ( )

◆ getShowGadget() [1/2]

List< ButtonGadget > Yukar.Engine.VirtualPad.getShowGadget ( ShowGadget  inShowGadget)

◆ getShowGadget() [2/2]

List< ButtonGadget > Yukar.Engine.VirtualPad.getShowGadget ( ShowGadget  inShowGadget,
ref List< ButtonGadget outDisableGadget,
ref List< ButtonGadget outHideGadget 
)

◆ getSlider()

SliderGadget Yukar.Engine.VirtualPad.getSlider ( Slider  inSlider)

◆ getStick()

StickGadget Yukar.Engine.VirtualPad.getStick ( Stick  inStick)

◆ getValue()

bool Yukar.Engine.VirtualPad.getValue ( Input.KeyStates  keyState,
ref int  outValue 
)

◆ hide()

void Yukar.Engine.VirtualPad.hide ( float  inTime = ShowTime)

◆ initialize()

void Yukar.Engine.VirtualPad.initialize ( GameMain  gameMain)

◆ show()

void Yukar.Engine.VirtualPad.show ( ShowGadget  inShowGadget = ShowGadget.Walk,
float  inTime = ShowTime 
)

◆ update()

void Yukar.Engine.VirtualPad.update ( )

Member Data Documentation

◆ inputState

InputState Yukar.Engine.VirtualPad.inputState = InputState.BASE
static

◆ mapFixCamera

bool Yukar.Engine.VirtualPad.mapFixCamera = true

◆ mapFixCameraMode

bool Yukar.Engine.VirtualPad.mapFixCameraMode = true

◆ mEnable

bool Yukar.Engine.VirtualPad.mEnable = true

◆ mTouch

Touch Yukar.Engine.VirtualPad.mTouch = Touch.GetInstance()

Property Documentation

◆ Enable

bool Yukar.Engine.VirtualPad.Enable
getset

◆ GameMain

Yukar.Engine.GameMain Yukar.Engine.VirtualPad.GameMain
getset

◆ Touch

Touch Yukar.Engine.VirtualPad.Touch
get