public class

JoystickDemo

extends ShapeScreen
java.lang.Object
   ↳ android.content.Context
     ↳ android.content.ContextWrapper
       ↳ android.view.ContextThemeWrapper
         ↳ android.app.Activity
           ↳ sofia.app.Screen
             ↳ sofia.app.ShapeScreen
               ↳ sofia.demos.JoystickDemo

Class Overview

Demonstrates the use of the joystick and directional pads.

Summary

[Expand]
Inherited Constants
From class android.app.Activity
From class android.content.Context
[Expand]
Inherited Fields
From class android.app.Activity
Public Constructors
JoystickDemo()
Public Methods
void initialize()
Initializes the screen.
void onKeyDown(KeyEvent e)
Handles the key events from the directional pad.
[Expand]
Inherited Methods
From class sofia.app.ShapeScreen
From class sofia.app.Screen
From class android.app.Activity
From class android.view.ContextThemeWrapper
From class android.content.ContextWrapper
From class android.content.Context
From class java.lang.Object
From interface android.content.ComponentCallbacks
From interface android.view.KeyEvent.Callback
From interface android.view.LayoutInflater.Factory
From interface android.view.View.OnCreateContextMenuListener
From interface android.view.Window.Callback
From interface sofia.app.ScreenMethods

Public Constructors

public JoystickDemo ()

Public Methods

public void initialize ()

Initializes the screen.

public void onKeyDown (KeyEvent e)

Handles the key events from the directional pad. TODO Modify ShapeView to support sending separate events for each key.

Parameters
e a KeyEvent describing the key press