mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-14 12:08:20 +00:00
28 lines
575 B
Java
28 lines
575 B
Java
|
package tw.DDNet;
|
||
|
import android.app.NativeActivity;
|
||
|
import org.libsdl.app.SDLActivity;
|
||
|
import android.os.Bundle;
|
||
|
import android.content.pm.ActivityInfo;
|
||
|
|
||
|
public class NativeMain extends SDLActivity {
|
||
|
static {
|
||
|
System.loadLibrary("DDNet");
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
protected String[] getLibraries() {
|
||
|
return new String[] {
|
||
|
// disable hid API for now
|
||
|
// "hidapi",
|
||
|
// "SDL2",
|
||
|
"DDNet",
|
||
|
};
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public void onCreate(Bundle SavedInstanceState) {
|
||
|
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
|
||
|
super.onCreate(SavedInstanceState);
|
||
|
}
|
||
|
}
|