mnit: update all clients of `mnit_android` with custom orientations
[nit.git] / contrib / friendz / src / friendz_android.nit
1 # Monsterz - Chains of Friends
2 #
3 # 2010-2014 (c) Jean Privat <jean@pryen.org>
4 #
5 # This program is free software; you can redistribute it and/or
6 # modify it under the terms of the Do What The Fuck You Want To
7 # Public License, Version 2, as published by Sam Hocevar. See
8 # http://sam.zoy.org/projects/COPYING.WTFPL for more details.
9
10 # android version of the game
11 module friendz_android
12
13 import friendz
14 import mnit_android
15 import android::landscape
16
17 redef class App
18 redef fun window_created
19 do
20 super
21 var w = screen_width
22 display.set_viewport(0,0,w,w*display.height/display.width)
23 end
24 end
25
26 redef class AndroidPointerEvent
27 redef fun is_motion do return not just_went_down
28 end