Unit Joy |
Classes |
TfrmJoy -
Functions |
Types |
Constants |
Variables |
Functions |
Types |
TCallbackJoy = procedure (buttons:word;ActionX,ActionY : real) of objectCallback-function for reporting Joystick-movement
TJoyConfig = recordv1.0 by Ralf Steinhaeusser in 1998 - ralf@sbox.tu-graz.ac.at for help over programming the joystick look in the helpfile MM.hlp in the Delphi3/Help - folder the whole component can be switched on/off by setting Enabled on/off Place Callback-function like this in target-file : // procedure TfrmMain.CallbackJoy(buttons : word;ActionX, ActionY : real); // and connect it like this... frmJoy.CallbackFunction:=CallbackJoy; don't forget to put "uses MMSystem" into the the file if you want to check the buttons like shown in the example
maxJoyvalX : Word;
maxJoyValY : Word;
CentXMin : word;
CentXMax : word;
CentYMin : word;
CentYMax : word;
end;
Constants |
Variables |