aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorvictorfisac <victorfisac@gmail.com>2016-01-05 13:58:20 +0100
committervictorfisac <victorfisac@gmail.com>2016-01-05 13:58:20 +0100
commitfe0cf8f9a9d6cafa40a1baf8b3cdace0268ccb82 (patch)
treeff3e40072807b1a227fdbb46a6e8be04df7b859d /src
parent32508f6db1d3f3c070e80ea42e0a1244a4c88cab (diff)
downloadraylib-fe0cf8f9a9d6cafa40a1baf8b3cdace0268ccb82.tar.gz
raylib-fe0cf8f9a9d6cafa40a1baf8b3cdace0268ccb82.zip
Added some comments and fixed spaces
Diffstat (limited to 'src')
-rw-r--r--src/core.c1
-rw-r--r--src/physac.c2
-rw-r--r--src/physac.h2
-rw-r--r--src/raylib.h4
4 files changed, 5 insertions, 4 deletions
diff --git a/src/core.c b/src/core.c
index 40691403..1d05edc6 100644
--- a/src/core.c
+++ b/src/core.c
@@ -1111,6 +1111,7 @@ Vector2 GetTouchPosition(void)
return position;
}
+// Detect if a button has been pressed once
bool IsButtonPressed(int button)
{
bool pressed = false;
diff --git a/src/physac.c b/src/physac.c
index 73ce7adc..6e3b6e61 100644
--- a/src/physac.c
+++ b/src/physac.c
@@ -61,7 +61,7 @@ static Vector2 Vector2Normalize(Vector2 vector);
//----------------------------------------------------------------------------------
// Module Functions Definitions
//----------------------------------------------------------------------------------
-void InitPhysics()
+void InitPhysics(void)
{
for (int i = 0; i < MAX_ELEMENTS; i++)
{
diff --git a/src/physac.h b/src/physac.h
index 7dbfe1fe..558673ef 100644
--- a/src/physac.h
+++ b/src/physac.h
@@ -76,7 +76,7 @@ extern "C" { // Prevents name mangling of functions
//----------------------------------------------------------------------------------
// Module Functions Declarations
//----------------------------------------------------------------------------------
-void InitPhysics(); // Initialize all internal physics values
+void InitPhysics(void); // Initialize all internal physics values
void SetPhysics(Physics settings); // Set physics settings values using Physics data type to overwrite internal physics settings
void AddRigidbody(int index, Rigidbody rigidbody); // Initialize a new rigidbody with parameters to internal index slot
diff --git a/src/raylib.h b/src/raylib.h
index 641eac4b..72211b59 100644
--- a/src/raylib.h
+++ b/src/raylib.h
@@ -589,7 +589,7 @@ int GetTouchY(void); // Returns touch positio
Vector2 GetTouchPosition(void); // Returns touch position XY (relative to screen size)
bool IsButtonPressed(int button); // Detect if an android physic button has been pressed
bool IsButtonDown(int button); // Detect if an android physic button is being pressed
-bool IsButtonReleased(int button); // Detect if an android physic button has been released
+bool IsButtonReleased(int button); // Detect if an android physic button has been released
//------------------------------------------------------------------------------------
// Gestures and Touch Handling Functions (Module: gestures)
@@ -805,7 +805,7 @@ void SetMaterialNormalDepth(Material *material, float depth); // Set n
//----------------------------------------------------------------------------------
// Physics System Functions (engine-module: physics)
//----------------------------------------------------------------------------------
-void InitPhysics(); // Initialize all internal physics values
+void InitPhysics(void); // Initialize all internal physics values
void SetPhysics(Physics settings); // Set physics settings values using Physics data type to overwrite internal physics settings
void AddRigidbody(int index, Rigidbody rigidbody); // Initialize a new rigidbody with parameters to internal index slot