Показать сообщение отдельно
Старый 06.12.2006, 13:49   #80
Димон
Гуру
 
Аватар для Димон
 
Регистрация: 03.10.2005
Город: МКАД восток-запад
Регион: 77, 97, 99, 177
Машина: 09\Опиль\АстраХ
Сообщений: 2,012
Димон is a splendid one to beholdДимон is a splendid one to beholdДимон is a splendid one to beholdДимон is a splendid one to beholdДимон is a splendid one to beholdДимон is a splendid one to behold
По умолчанию

Тут наверное: http://www.autohotkey.com/docs/commands/GetKeyState.htm

Цитата:
Сообщение от autohotkey.com
1) For a joystick axis such as JoyX, OutputVar will be set to a floating point number between 0 and 100 to indicate the joystick's position as a percentage of that axis's range of motion. The format of the number can be changed via SetFormat. This test script can be used to analyze your joystick(s).

2) When KeyName is JoyPOV, the retrieved value will be between 0 and 35900. The following approximate POV values are used by many joysticks:
-1: no angle to report
0: forward POV
9000 (i.e. 90 degrees): right POV
27000 (i.e. 270 degrees): left POV
18000 (i.e. 180 degrees): backward POV
Мои скрипты все тут лежат.

Видимо надо сделать цикл с таймером порядка 100ms чтобы он опрашивал позицию жостика 10 раз в секунду.

Последний раз редактировалось Димон; 06.12.2006 в 15:20.
Димон вне форума   Ответить с цитированием