diff options
author | Krzysztof H <krzys_h@interia.pl> | 2012-03-19 12:44:39 +0100 |
---|---|---|
committer | Krzysztof H <krzys_h@interia.pl> | 2012-03-19 12:44:39 +0100 |
commit | f7d892cf4ef6bfce3747c4b6a810d4828b79833d (patch) | |
tree | 8311c7057b5f861c387ecc8c96cd778abc47c8d8 /src/key.cpp | |
parent | 343cb0ce660136ac034e6106c0f151466b751398 (diff) | |
download | colobot-f7d892cf4ef6bfce3747c4b6a810d4828b79833d.tar.gz colobot-f7d892cf4ef6bfce3747c4b6a810d4828b79833d.tar.bz2 colobot-f7d892cf4ef6bfce3747c4b6a810d4828b79833d.zip |
Last coding fix ;)
Diffstat (limited to 'src/key.cpp')
-rw-r--r-- | src/key.cpp | 18 |
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
}
|