InputDevice | Android Developers
I'm copying the code straight from here, and it fails:
GrepCode: com.example.android.apis.view.GameControllerInput (.java) - Class - Source Code View
It red-lines InputDeviceState and says it can't be resolved to a type
Same for GameView
And SummaryAdapter
I can't get the first 3 lines of code to work!
I'm copying the code straight from here, and it fails:
GrepCode: com.example.android.apis.view.GameControllerInput (.java) - Class - Source Code View
B4X:
private SparseArray<InputDeviceState> mInputDeviceStates;
B4X:
private GameView mGame;
B4X:
private SummaryAdapter mSummaryAdapter;
I can't get the first 3 lines of code to work!
B4X:
/**
*
*/
import android.content.Context;
import android.os.Bundle;
import android.util.AttributeSet;
import android.util.SparseArray;
import android.util.SparseIntArray;
import android.view.InputDevice;
import android.view.InputEvent;
import android.view.KeyEvent;
import android.view.MotionEvent;
import android.view.InputDevice.MotionRange;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.atomic.AtomicLong;
/**
* @author Techni
*
*/
public class Joystick {
private static final String TAG = "GameControllerInput";
private SparseArray<InputDeviceState> mInputDeviceStates;
private GameView mGame;
private SummaryAdapter mSummaryAdapter;
}