Unit Joy

Classes

TfrmJoy -

Functions

Types

TCallbackJoy
TJoyConfig

Constants

Variables

frmJoy


Functions


Types


TCallbackJoy = procedure (buttons:word;ActionX,ActionY : real) of object
Callback-function for reporting Joystick-movement
TJoyConfig = record
maxJoyvalX : Word;
maxJoyValY : Word;
CentXMin : word;
CentXMax : word;
CentYMin : word;
CentYMax : word;
end;
v1.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

Constants


Variables

frmJoy : TfrmJoy

holds "unsensible area", maxX, maxY etc...