code: remove `protected` from top-level methods (now in sys)
[nit.git] / lib / mnit_android / android_app.nit
index 00c3244..9d0d6c4 100644 (file)
 # limitations under the License.
 
 # Impements the services of `mnit:app` using the API from the Android ndk
-module android_app is
-       android_manifest_activity """
+module android_app is android_manifest_activity """
                android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
                android:configChanges="orientation|keyboardHidden"
-               android:screenOrientation="portrait""""
-end
+"""
 
 import mnit
 import android
@@ -36,10 +34,6 @@ in "C" `{
        extern EGLConfig mnit_config;
        extern int32_t mnit_width;
        extern int32_t mnit_height;
-       extern float mnit_zoom;
-
-       //int mnit_orientation_changed;
-       float mnit_zoom;
 `}
 
 redef class App
@@ -56,12 +50,12 @@ redef class App
 
        redef fun generate_input do poll_looper 0
 
-       redef fun extern_input_key(event)
+       redef fun native_input_key(event)
        do
                return input(event)
        end
 
-       redef fun extern_input_motion(event)
+       redef fun native_input_motion(event)
        do
                var ie = new AndroidMotionEvent(event)
                var handled = input(ie)