mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-11 18:49:14 +02:00
+ some more functions added, also some dummies
This commit is contained in:
parent
385b19dbc7
commit
054ddd8cb3
@ -23,9 +23,23 @@ unit wincrt;
|
|||||||
function keypressed : boolean;
|
function keypressed : boolean;
|
||||||
procedure delay(ms : word);
|
procedure delay(ms : word);
|
||||||
|
|
||||||
|
{ dummy }
|
||||||
|
procedure textmode(mode : integer);
|
||||||
|
|
||||||
|
{ plays the windows standard sound }
|
||||||
|
{ hz is ignored (at least on win95 }
|
||||||
|
procedure sound(hz : word);
|
||||||
|
|
||||||
|
{ dummy }
|
||||||
|
procedure nosound;
|
||||||
|
|
||||||
|
|
||||||
var
|
var
|
||||||
directvideo : boolean;
|
directvideo : boolean;
|
||||||
|
|
||||||
|
{ dummy }
|
||||||
|
lastmode : word;
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|
||||||
uses
|
uses
|
||||||
@ -92,6 +106,22 @@ unit wincrt;
|
|||||||
Sleep(ms);
|
Sleep(ms);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure textmode(mode : integer);
|
||||||
|
|
||||||
|
begin
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure sound(hz : word);
|
||||||
|
|
||||||
|
begin
|
||||||
|
Windows.Beep(hz,500);
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure nosound;
|
||||||
|
|
||||||
|
begin
|
||||||
|
end;
|
||||||
|
|
||||||
function msghandler(Window: hwnd; AMessage, WParam,
|
function msghandler(Window: hwnd; AMessage, WParam,
|
||||||
LParam: Longint): Longint;
|
LParam: Longint): Longint;
|
||||||
|
|
||||||
@ -100,12 +130,9 @@ unit wincrt;
|
|||||||
WM_CHAR:
|
WM_CHAR:
|
||||||
begin
|
begin
|
||||||
addchar(chr(wparam));
|
addchar(chr(wparam));
|
||||||
writeln('got char message: ',wparam);
|
|
||||||
end;
|
end;
|
||||||
WM_KEYDOWN:
|
WM_KEYDOWN:
|
||||||
begin
|
begin
|
||||||
|
|
||||||
writeln('got key message');
|
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
msghandler:=0;
|
msghandler:=0;
|
||||||
@ -121,6 +148,7 @@ unit wincrt;
|
|||||||
charmessagehandler:=nil;
|
charmessagehandler:=nil;
|
||||||
DeleteCriticalSection(keyboardhandling);
|
DeleteCriticalSection(keyboardhandling);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
charmessagehandler:=@msghandler;
|
charmessagehandler:=@msghandler;
|
||||||
nextfree:=1;
|
nextfree:=1;
|
||||||
@ -128,10 +156,14 @@ begin
|
|||||||
InitializeCriticalSection(keyboardhandling);
|
InitializeCriticalSection(keyboardhandling);
|
||||||
oldexitproc:=exitproc;
|
oldexitproc:=exitproc;
|
||||||
exitproc:=@myexitproc;
|
exitproc:=@myexitproc;
|
||||||
|
lastmode:=0;
|
||||||
end.
|
end.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.3 2000-01-07 16:41:53 daniel
|
Revision 1.4 2000-03-05 13:07:58 florian
|
||||||
|
+ some more functions added, also some dummies
|
||||||
|
|
||||||
|
Revision 1.3 2000/01/07 16:41:53 daniel
|
||||||
* copyright 2000
|
* copyright 2000
|
||||||
|
|
||||||
Revision 1.2 1999/11/29 22:03:39 florian
|
Revision 1.2 1999/11/29 22:03:39 florian
|
||||||
|
Loading…
Reference in New Issue
Block a user