summaryrefslogtreecommitdiffhomepage
path: root/src/core.c
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2015-04-22 18:36:52 +0200
committerraysan5 <[email protected]>2015-04-22 18:36:52 +0200
commit7db895ab5d415d931e0319061d437c952a6155b2 (patch)
tree2a869121e96cc4059fe979c5421893330003a026 /src/core.c
parentceb73257272e34a739b6225e1f30e4e377fdab77 (diff)
downloadraylib-7db895ab5d415d931e0319061d437c952a6155b2.tar.gz
raylib-7db895ab5d415d931e0319061d437c952a6155b2.zip
Corrected some bugs and warnings
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core.c b/src/core.c
index 7196fbb0..81583bf3 100644
--- a/src/core.c
+++ b/src/core.c
@@ -718,7 +718,7 @@ Ray GetMouseRay(Vector2 mousePosition, Camera camera)
float realy = (float)GetScreenHeight() - mousePosition.y;
- float z;
+ //float z;
// glReadPixels(mousePosition.x, mousePosition.y, 1, 1, GL_DEPTH_COMPONENT, GL_FLOAT, &z);
//http://www.bfilipek.com/2012/06/select-mouse-opengl.html
@@ -955,7 +955,7 @@ bool IsCursorHidden()
// TODO: Enable gamepad usage on Rapsberry Pi
// NOTE: emscripten not implemented
-#if defined(PLATFORM_DESKTOP)
+#if defined(PLATFORM_DESKTOP) || defined(PLATFORM_WEB)
// Detect if a gamepad is available
bool IsGamepadAvailable(int gamepad)
{