mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-25 08:06:49 +03:00
Flood-it: fix key's control
git-svn-id: svn://kolibrios.org@5230 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
9f16c89604
commit
0587a82809
@ -1,7 +1,7 @@
|
|||||||
del lang.h--
|
del lang.h--
|
||||||
echo #define LANG_ENG 1 >lang.h--
|
echo #define LANG_ENG 1 >lang.h--
|
||||||
..\C--\C-- flood-it.c
|
C-- flood-it.c
|
||||||
del flood-it!
|
del flood-it!
|
||||||
rename flood-it.com flood-it
|
rename flood-it.com flood-it
|
||||||
..\C--\kpack flood-it
|
C--\kpack flood-it
|
||||||
pause
|
pause
|
@ -1,7 +1,7 @@
|
|||||||
del lang.h--
|
del lang.h--
|
||||||
echo #define LANG_RUS 1 >lang.h--
|
echo #define LANG_RUS 1 >lang.h--
|
||||||
..\C--\C-- flood-it.c
|
C-- flood-it.c
|
||||||
del flood-it
|
del flood-it
|
||||||
rename flood-it.com flood-it
|
rename flood-it.com flood-it
|
||||||
..\C--\kpack flood-it
|
kpack flood-it
|
||||||
pause
|
pause
|
@ -1,4 +1,4 @@
|
|||||||
//Leency 06.10.2011, Flood-it! v2.4, GPL
|
//Leency 06.10.2011, Flood-it! v2.41, GPL
|
||||||
|
|
||||||
#include "lib\kolibri.h"
|
#include "lib\kolibri.h"
|
||||||
#include "lib\random.h"
|
#include "lib\random.h"
|
||||||
|
@ -68,10 +68,22 @@ inline fastcall dword WaitEvent(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
inline fastcall word GetKey(){ //Gluk fix
|
inline fastcall word GetKey() //+Gluk fix
|
||||||
EAX = 2; // just read it key from buffer
|
{
|
||||||
$int 0x40
|
$push edx
|
||||||
EAX = EAX >> 8;
|
GETKEY:
|
||||||
|
$mov eax,2
|
||||||
|
$int 0x40
|
||||||
|
$cmp eax,1
|
||||||
|
$jne GETKEYI
|
||||||
|
$mov ah,dh
|
||||||
|
$jmp GETKEYII //jz?
|
||||||
|
GETKEYI:
|
||||||
|
$mov dh,ah
|
||||||
|
$jmp GETKEY
|
||||||
|
GETKEYII:
|
||||||
|
$pop edx
|
||||||
|
$shr eax,8
|
||||||
}
|
}
|
||||||
|
|
||||||
inline fastcall word GetButtonID(){
|
inline fastcall word GetButtonID(){
|
||||||
|
Loading…
Reference in New Issue
Block a user