94b9d2b2ad0b2de01dd579cc047daeff1be78133
[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
16 redef class App
17 redef fun window_created
18 do
19 super
20 var w = screen_width
21 display.set_viewport(0,0,w,w*display.height/display.width)
22 end
23 end
24
25 redef class AndroidPointerEvent
26 redef fun is_motion do return not motion_event.just_went_down
27 end