C# Class Microsoft.Xna.Framework.MonoGameAndroidGameView

Our override of OpenTK.AndroidGameView. Provides Touch and Key Input handling.
Inheritance: AndroidGameView, View.IOnTouchListener, ISurfaceHolderCallback
Afficher le fichier Open project: procfxgen/MGShaderEditor Class Usage Examples

Méthodes publiques

Méthode Description
MonoGameAndroidGameView ( Android.Content.Context context, AndroidGameWindow androidGameWindow, Microsoft.Xna.Framework.Game game ) : System
OnGenericMotionEvent ( Android.Views.MotionEvent e ) : bool
OnKeyDown ( Keycode keyCode, Android.Views.KeyEvent e ) : bool
OnKeyUp ( Keycode keyCode, Android.Views.KeyEvent e ) : bool
Resume ( ) : void

Méthodes protégées

Méthode Description
CreateFrameBuffer ( ) : void
OnContextLost ( EventArgs e ) : void
OnContextSet ( EventArgs e ) : void
OnLoad ( EventArgs eventArgs ) : void

Private Methods

Méthode Description
IOnTouchListener ( Android.Views.View v, Android.Views.MotionEvent e ) : bool
ISurfaceHolderCallback ( ISurfaceHolder holder ) : void
ISurfaceHolderCallback ( ISurfaceHolder holder, Android format, int width, int height ) : void

Method Details

CreateFrameBuffer() protected méthode

protected CreateFrameBuffer ( ) : void
Résultat void

MonoGameAndroidGameView() public méthode

public MonoGameAndroidGameView ( Android.Content.Context context, AndroidGameWindow androidGameWindow, Microsoft.Xna.Framework.Game game ) : System
context Android.Content.Context
androidGameWindow AndroidGameWindow
game Microsoft.Xna.Framework.Game
Résultat System

OnContextLost() protected méthode

protected OnContextLost ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnContextSet() protected méthode

protected OnContextSet ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnGenericMotionEvent() public méthode

public OnGenericMotionEvent ( Android.Views.MotionEvent e ) : bool
e Android.Views.MotionEvent
Résultat bool

OnKeyDown() public méthode

public OnKeyDown ( Keycode keyCode, Android.Views.KeyEvent e ) : bool
keyCode Keycode
e Android.Views.KeyEvent
Résultat bool

OnKeyUp() public méthode

public OnKeyUp ( Keycode keyCode, Android.Views.KeyEvent e ) : bool
keyCode Keycode
e Android.Views.KeyEvent
Résultat bool

OnLoad() protected méthode

protected OnLoad ( EventArgs eventArgs ) : void
eventArgs System.EventArgs
Résultat void

Resume() public méthode

public Resume ( ) : void
Résultat void