summaryrefslogtreecommitdiffhomepage
path: root/examples/ex03b_input_mouse.c
diff options
context:
space:
mode:
authorRay <[email protected]>2014-09-21 14:07:20 +0200
committerRay <[email protected]>2014-09-21 14:07:20 +0200
commit42b1cb1aaa9f673b97b12a7209fe3518d166ec34 (patch)
tree1cc6063e4fa8d95d7865cadec1f35bc7a3e80d9a /examples/ex03b_input_mouse.c
parent1989b9fcd994bcdfb3ade460d6f3804de8734db0 (diff)
downloadraylib-42b1cb1aaa9f673b97b12a7209fe3518d166ec34.tar.gz
raylib-42b1cb1aaa9f673b97b12a7209fe3518d166ec34.zip
Rename ex03b_input_mouse.c to core_input_mouse.c
Diffstat (limited to 'examples/ex03b_input_mouse.c')
-rw-r--r--examples/ex03b_input_mouse.c62
1 files changed, 0 insertions, 62 deletions
diff --git a/examples/ex03b_input_mouse.c b/examples/ex03b_input_mouse.c
deleted file mode 100644
index da2912a3..00000000
--- a/examples/ex03b_input_mouse.c
+++ /dev/null
@@ -1,62 +0,0 @@
-/*******************************************************************************************
-*
-* raylib example 03b - Mouse input
-*
-* This example has been created using raylib 1.0 (www.raylib.com)
-* raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details)
-*
-* Copyright (c) 2013 Ramon Santamaria (Ray San - [email protected])
-*
-********************************************************************************************/
-
-#include "raylib.h"
-
-int main()
-{
- // Initialization
- //--------------------------------------------------------------------------------------
- int screenWidth = 800;
- int screenHeight = 450;
-
- Vector2 ballPosition = { -100.0, -100.0 };
- int mouseX, mouseY;
-
- InitWindow(screenWidth, screenHeight, "raylib example 06 - mouse input");
- //---------------------------------------------------------------------------------------
-
- // Main game loop
- while (!WindowShouldClose()) // Detect window close button or ESC key
- {
- // Update
- //----------------------------------------------------------------------------------
- if (IsMouseButtonPressed(MOUSE_LEFT_BUTTON))
- {
- mouseX = GetMouseX();
- mouseY = GetMouseY();
-
- ballPosition.x = (float)mouseX;
- ballPosition.y = (float)mouseY;
- }
- //----------------------------------------------------------------------------------
-
- // Draw
- //----------------------------------------------------------------------------------
- BeginDrawing();
-
- ClearBackground(RAYWHITE);
-
- DrawCircleV(ballPosition, 40, GOLD);
-
- DrawText("mouse click to draw the ball", 10, 10, 20, DARKGRAY);
-
- EndDrawing();
- //----------------------------------------------------------------------------------
- }
-
- // De-Initialization
- //--------------------------------------------------------------------------------------
- CloseWindow(); // Close window and OpenGL context
- //--------------------------------------------------------------------------------------
-
- return 0;
-} \ No newline at end of file