OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:AxesMapping
(Results
1 - 2
of
2
) sorted by null
/developers/build/prebuilts/androidtv/visual-game-controller/src/com/example/android/visualgamecontroller/
ControllerView.java
34
import com.example.android.visualgamecontroller.FullscreenActivity.
AxesMapping
;
350
if (mAxes[
AxesMapping
.AXIS_BRAKE.ordinal()] > 0.0f) {
351
mGradientPaint.setAlpha((int) (mAxes[
AxesMapping
.AXIS_BRAKE.ordinal()] * 100) + 155);
355
if (mAxes[
AxesMapping
.AXIS_GAS.ordinal()] > 0.0f) {
356
mGradientPaint.setAlpha((int) (mAxes[
AxesMapping
.AXIS_GAS.ordinal()] * 100) + 155);
387
if (mAxes[
AxesMapping
.AXIS_X.ordinal()] != 0.0f) {
389
* mAxes[
AxesMapping
.AXIS_X.ordinal()];
391
if (mAxes[
AxesMapping
.AXIS_Y.ordinal()] != 0.0f) {
393
* getHeight() * mAxes[
AxesMapping
.AXIS_Y.ordinal()];
396
if (mAxes[
AxesMapping
.AXIS_Z.ordinal()] != 0.0f)
[
all
...]
FullscreenActivity.java
104
public enum
AxesMapping
{
118
AxesMapping
(int motionEvent) {
128
private float[] mAxes = new float[
AxesMapping
.values().length];
302
for (
AxesMapping
axesMapping
:
AxesMapping
.values()) {
303
mAxes[
axesMapping
.ordinal()] = getCenteredAxis(ev, device,
304
axesMapping
.getMotionEvent());
Completed in 466 milliseconds