Changeset 719
- Timestamp:
- Mar 3, 2011, 1:07:23 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/androidapp.cpp
r714 r719 70 70 } 71 71 72 extern "C" void 73 Java_org_zoy_LolEngine_LolGLSurfaceView_nativeDown(JNIEnv* env) 74 { 75 Input::SetMouseButton(0); 76 } 77 78 extern "C" void 79 Java_org_zoy_LolEngine_LolGLSurfaceView_nativeUp(JNIEnv* env) 80 { 81 Input::UnsetMouseButton(0); 82 } 83 84 extern "C" void 85 Java_org_zoy_LolEngine_LolGLSurfaceView_nativeMove(JNIEnv* env, jobject thiz, 86 jint x, jint y) 87 { 88 vec2i pos(x * 640 / Video::GetWidth(), 89 480 - 1 - y * 480 / Video::GetHeight()); 90 Input::SetMousePos(pos); 91 } 92 72 93 /* Call to render the next GL frame */ 73 94 extern "C" void
Note: See TracChangeset
for help on using the changeset viewer.