tests: don't use the readlink option -f when not available (macOS)
[nit.git] / contrib / friendz / src / friendz_linux.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 # Linux (SDL) version of the game
11 module friendz_linux
12
13 import friendz
14 import mnit::linux
15
16 redef class Display
17 redef fun wanted_width do return app.screen_width
18 redef fun wanted_height do return app.screen_height
19 end
20
21 redef class SDLDisplay
22 redef fun enable_mouse_motion_events do return true
23 end
24
25 redef class SDLMouseMotionEvent
26 redef fun is_motion do return true
27 end