summaryrefslogtreecommitdiffstats
path: root/src/key.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/key.cpp')
-rw-r--r--src/key.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/key.cpp b/src/key.cpp
index a292c85..84fd952 100644
--- a/src/key.cpp
+++ b/src/key.cpp
@@ -1,4 +1,4 @@
-// * This file is part of the COLOBOT source code
+// * This file is part of the COLOBOT source code
// * Copyright (C) 2001-2008, Daniel ROUX & EPSITEC SA, www.epsitec.ch
// *
// * This program is free software: you can redistribute it and/or modify
@@ -12,7 +12,7 @@
// * GNU General Public License for more details.
// *
// * You should have received a copy of the GNU General Public License
-// * along with this program. If not, see http://www.gnu.org/licenses/.
+// * along with this program. If not, see http://www.gnu.org/licenses/.// key.cpp
#define STRICT
#define D3D_OVERLOADS
@@ -77,7 +77,7 @@ CKey::~CKey()
}
-// Cr�e un nouveau bouton.
+// Crée un nouveau bouton.
BOOL CKey::Create(FPOINT pos, FPOINT dim, int icon, EventMsg eventMsg)
{
@@ -97,7 +97,7 @@ BOOL CKey::Create(FPOINT pos, FPOINT dim, int icon, EventMsg eventMsg)
}
-// Gestion d'un �v�nement.
+// Gestion d'un événement.
BOOL CKey::EventProcess(const Event &event)
{
@@ -151,33 +151,33 @@ BOOL CKey::EventProcess(const Event &event)
}
-// Cherche si une touche est d�j� utilis�e.
+// Cherche si une touche est déjà utilisée.
BOOL CKey::TestKey(int key)
{
int i, j;
if ( key == VK_PAUSE ||
- key == VK_SNAPSHOT ) return TRUE; // touche bloqu�e
+ key == VK_SNAPSHOT ) return TRUE; // touche bloquée
for ( i=0 ; i<20 ; i++ )
{
for ( j=0 ; j<2 ; j++ )
{
- if ( key == m_engine->RetKey(i, j) ) // touche utilis�e ?
+ if ( key == m_engine->RetKey(i, j) ) // touche utilisée ?
{
m_engine->SetKey(i, j, 0); // plus rien !
}
}
- if ( m_engine->RetKey(i, 0) == 0 ) // premi�re option libre ?
+ if ( m_engine->RetKey(i, 0) == 0 ) // première option libre ?
{
m_engine->SetKey(i, 0, m_engine->RetKey(i, 1)); // shift
m_engine->SetKey(i, 1, 0);
}
}
- return FALSE; // pas utilis�e
+ return FALSE; // pas utilisée
}