OSDN Git Service

e1a559cd2ccb27e5fd1f98c89df3b2831f5f0254
[mikumikustudio/libgdx-mikumikustudio.git] / tests / gdx-tests / src / com / badlogic / gdx / tests / bullet / BulletTest.java
1 /*******************************************************************************
2  * Copyright 2011 See AUTHORS file.
3  * 
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  * 
8  *   http://www.apache.org/licenses/LICENSE-2.0
9  * 
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  ******************************************************************************/
16
17 package com.badlogic.gdx.tests.bullet;
18
19 import com.badlogic.gdx.ApplicationListener;
20 import com.badlogic.gdx.InputProcessor;
21 import com.badlogic.gdx.graphics.Camera;
22 import com.badlogic.gdx.graphics.PerspectiveCamera;
23 import com.badlogic.gdx.input.GestureDetector.GestureListener;
24 import com.badlogic.gdx.math.FloatCounter;
25 import com.badlogic.gdx.math.Vector2;
26 import com.badlogic.gdx.utils.PerformanceCounter;
27 import com.badlogic.gdx.utils.SharedLibraryLoader;
28
29 /** @author xoppa */
30 public class BulletTest implements ApplicationListener, InputProcessor, GestureListener {
31         public StringBuilder performance = new StringBuilder();
32         public String instructions = "Tap to shoot\nLong press to toggle debug mode\nSwipe for next test\nCtrl+drag to rotate\nScroll to zoom";
33         public PerformanceCounter performanceCounter = new PerformanceCounter(this.getClass().getSimpleName());
34         public FloatCounter fpsCounter = new FloatCounter(5);
35         public PerspectiveCamera camera;
36         
37         @Override
38         public boolean keyDown (int keycode) {
39                 return false;
40         }
41
42         @Override
43         public boolean keyTyped (char character) {
44                 return false;
45         }
46
47         @Override
48         public boolean keyUp (int keycode) {
49                 return false;
50         }
51
52         @Override
53         public boolean touchDown (int screenX, int screenY, int pointer, int button) {
54                 return false;
55         }
56
57         @Override
58         public boolean touchUp (int screenX, int screenY, int pointer, int button) {
59                 return false;
60         }
61
62         @Override
63         public boolean touchDragged (int screenX, int screenY, int pointer) {
64                 return false;
65         }
66
67         @Override
68         public boolean mouseMoved (int screenX, int screenY) {
69                 return false;
70         }
71
72         @Override
73         public boolean scrolled (int amount) {
74                 return false;
75         }
76
77         @Override
78         public void create () {
79         }
80
81         @Override
82         public void resize (int width, int height) {
83         }
84
85         @Override
86         public void render () {
87         }
88
89         @Override
90         public void pause () {
91         }
92
93         @Override
94         public void resume () {
95         }
96
97         @Override
98         public void dispose () {
99         }
100
101         @Override
102         public boolean touchDown (float x, float y, int pointer, int button) {
103                 return false;
104         }
105
106         @Override
107         public boolean tap (float x, float y, int count, int button) {
108                 return false;
109         }
110
111         @Override
112         public boolean longPress (float x, float y) {
113                 return false;
114         }
115
116         @Override
117         public boolean fling (float velocityX, float velocityY, int button) {
118                 return false;
119         }
120
121         @Override
122         public boolean pan (float x, float y, float deltaX, float deltaY) {
123                 return false;
124         }
125
126         @Override
127         public boolean zoom (float initialDistance, float distance) {
128                 return false;
129         }
130
131         @Override
132         public boolean pinch (Vector2 initialPointer1, Vector2 initialPointer2, Vector2 pointer1, Vector2 pointer2) {
133                 return false;
134         }
135 }