?? readme.txt
字號:
Joystick Demo - Jeff Kurtz
---------------------------------------------------------------------------
This example shows how to use the Joystick component -- Read the DOC file
for all the properties, methods, and events.
This is a rather simple example. On the main form are 9 blue panels, these
represent the 9 positions of a digital joystick. There are 4 red panels,
these represent the 4 buttons.
There is also 1 larger panel with a label on it with '+' in it. This panel
is used for the Analog test screen. When digital mode is selected, this
panel will be hidden, when Analog mode is set, this panel will be visible.
The START button will start capturing the joystick messages and the STOP
button will stop.
The MODE buttons allow you to set either digital or analog mode
The NOTIFY check tells the component to only send a message when the
joystick has been changed (movement or buttons). If this is unchecked,
a constant polling will occur sending messages to the OnXXX events at a
set interval.
This interval is specified by the Polling trackbar. This is the number of
milliseconds between notifications -- kind of like a speed setting ???
The Thresh trackbar is the Threshold setting. This value indicates the
distance the joystick must move before a notifcation is sent.
The code for this demo is long but most of it deals with enabling/disabling
options and controlling the color of the panels.
The joystick is not that complicated, once you play with it a couple times.
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -