source: trunk/src/platform.cpp @ 939

Last change on this file since 939 was 939, checked in by sam, 9 years ago

build: stop defining ANDROID_NDK and check for ANDROID instead.

According to David Turner, “it should be the only thing that NDK users
should be testing again.”

  • Property svn:keywords set to Id
File size: 682 bytes
Line 
1//
2// Lol Engine
3//
4// Copyright: (c) 2010-2011 Sam Hocevar <sam@hocevar.net>
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
11#if defined HAVE_CONFIG_H
12#   include "config.h"
13#endif
14
15#include <cmath>
16
17#include "core.h"
18
19namespace lol
20{
21
22/*
23 * Public Platform class
24 */
25
26int Platform::GetMouseCount()
27{
28#if defined __ANDROID__
29    /* Assume Android devices are touch devices that don't have a mouse */
30    return 0;
31#endif
32    return 1;
33}
34
35} /* namespace lol */
36
Note: See TracBrowser for help on using the repository browser.