You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

31 lines
602 B

  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://www.wtfpl.net/ for more details.
  9. //
  10. #include <lol/engine-internal.h>
  11. namespace lol
  12. {
  13. /*
  14. * Public Platform class
  15. */
  16. int Platform::GetMouseCount()
  17. {
  18. #if defined __ANDROID__
  19. /* Assume Android devices are touch devices that don't have a mouse */
  20. return 0;
  21. #endif
  22. return 1;
  23. }
  24. } /* namespace lol */