Function comment header cleanup.

This commit is contained in:
Camilla Berglund
2010-09-09 20:59:50 +02:00
parent 3228755895
commit 1723c4af07
8 changed files with 49 additions and 66 deletions
+8 -34
View File
@@ -31,12 +31,8 @@
#include "internal.h"
//************************************************************************
//**** GLFW internal functions ****
//************************************************************************
//========================================================================
// Enable (show) mouse cursor
// Enable and disable locked cursor mode
//========================================================================
static void enableMouseCursor(_GLFWwindow* window)
@@ -46,7 +42,6 @@ static void enableMouseCursor(_GLFWwindow* window)
if (_glfwLibrary.cursorLockWindow != window)
return;
// Show mouse cursor
_glfwPlatformShowMouseCursor(window);
centerPosX = window->width / 2;
@@ -71,16 +66,11 @@ static void enableMouseCursor(_GLFWwindow* window)
_glfwLibrary.cursorLockWindow = NULL;
}
//========================================================================
// Disable (hide) mouse cursor
//========================================================================
static void disableMouseCursor(_GLFWwindow* window)
{
if (_glfwLibrary.cursorLockWindow)
return;
// Hide mouse cursor
_glfwPlatformHideMouseCursor(window);
// Move cursor to the middle of the window
@@ -94,7 +84,7 @@ static void disableMouseCursor(_GLFWwindow* window)
//========================================================================
// Enable sticky keys
// Enable and disable sticky keys mode
//========================================================================
static void enableStickyKeys(_GLFWwindow* window)
@@ -102,10 +92,6 @@ static void enableStickyKeys(_GLFWwindow* window)
window->stickyKeys = GL_TRUE;
}
//========================================================================
// Disable sticky keys
//========================================================================
static void disableStickyKeys(_GLFWwindow* window)
{
int i;
@@ -122,7 +108,7 @@ static void disableStickyKeys(_GLFWwindow* window)
//========================================================================
// Enable sticky mouse buttons
// Enable and disable sticky mouse buttons mode
//========================================================================
static void enableStickyMouseButtons(_GLFWwindow* window)
@@ -130,10 +116,6 @@ static void enableStickyMouseButtons(_GLFWwindow* window)
window->stickyMouseButtons = GL_TRUE;
}
//========================================================================
// Disable sticky mouse buttons
//========================================================================
static void disableStickyMouseButtons(_GLFWwindow* window)
{
int i;
@@ -150,7 +132,7 @@ static void disableStickyMouseButtons(_GLFWwindow* window)
//========================================================================
// Enable system keys
// Enable and disable system keys
//========================================================================
static void enableSystemKeys(_GLFWwindow* window)
@@ -164,10 +146,6 @@ static void enableSystemKeys(_GLFWwindow* window)
window->sysKeysDisabled = GL_FALSE;
}
//========================================================================
// Disable system keys
//========================================================================
static void disableSystemKeys(_GLFWwindow* window)
{
if (window->sysKeysDisabled)
@@ -181,7 +159,7 @@ static void disableSystemKeys(_GLFWwindow* window)
//========================================================================
// Enable key repeat
// Enable and disable key repeat
//========================================================================
static void enableKeyRepeat(_GLFWwindow* window)
@@ -189,19 +167,15 @@ static void enableKeyRepeat(_GLFWwindow* window)
window->keyRepeat = GL_TRUE;
}
//========================================================================
// Disable key repeat
//========================================================================
static void disableKeyRepeat(_GLFWwindow* window)
{
window->keyRepeat = GL_FALSE;
}
//************************************************************************
//**** GLFW user functions ****
//************************************************************************
//////////////////////////////////////////////////////////////////////////
////// GLFW public API //////
//////////////////////////////////////////////////////////////////////////
//========================================================================
// Enable certain GLFW/window/system functions