Hello... Let's post this here as well... I with the "idea" from
www.virtualflightproductions.com created "Z-Axis" to work as zoom.
VFP just had idea to use Joy2Key or ControlMk.232 as keymapper, and that sucks, you can only set 2 keys for full "axis"... Did some searching on google and found the solution
So here it is:
Download and install
PPJOY
Download and "install"
Tir2Joy
And after you have figured out how to make those to work ...
Download and install
AutoHotkey
and paste following script to whatever.ahk :::
code:; TrackIR Zoom Script for IL2FB/AEP/PF
;
http://www.lufthunden.com
; This script is used to send single keypresses to manage FOV in IL2.
; =LH=Mave's Xmas present for the IL2 community
#SingleInstance
SetFormat, float, 03 ; Omit decimal point from axis position percentages.
JoystickNumber = 4 ; Increase this to test a joystick other than the first.
JoystickAxis = y ; Set this to the axis you want to use.
GetKeyState, axis_count, %JoystickNumber%JoyAxes
if axis_count < 1
{
MsgBox Joystick #%JoystickNumber% does not appear to be attached to the system.
ExitApp
}
Loop
{
GetKeyState, joystate, %JoystickNumber%Joy%JoystickAxis%
if joystate between 000 and 013
ifNotEqual, sent_button, 1
{
sent_button = 1
Send, +{Numpad0 1}
}
if joystate between 014 and 018
ifNotEqual, sent_button, 2
{
sent_button = 2
Send, +{Numpad9 1}
}
if joystate between 019 and 023
ifNotEqual, sent_button, 3
{
sent_button = 3
Send, +{Numpad8 1}
}
if joystate between 024 and 028
ifNotEqual, sent_button, 4
{
sent_button = 4
Send, +{Numpad7 1}
}
if joystate between 029 and 033
ifNotEqual, sent_button, 5
{
sent_button = 5
Send, +{Numpad6 1}
}
if joystate between 034 and 038
ifNotEqual, sent_button, 6
{
sent_button = 6
Send, +{Numpad5 1}
}
if joystate between 039 and 043
ifNotEqual, sent_button, 7
{
sent_button = 7
Send, +{Numpad4 1}
}
if joystate between 044 and 048
ifNotEqual, sent_button, 8
{
sent_button = 8
Send, +{Numpad3 1}
}
if joystate between 049 and 056
ifNotEqual, sent_button, 9
{
sent_button = 9
Send, +{Numpad2 1}
}
if joystate between 057 and 061
ifNotEqual, sent_button, 10
{
sent_button = 10
Send, +{Numpad1 1}
}
if joystate between 062 and 066
ifNotEqual, sent_button, 11
{
sent_button = 11
Send, +{NumpadMult 1}
}
if joystate between 067 and 071
ifNotEqual, sent_button, 12
{
sent_button = 12
Send, +{NumpadSub 1}
}
if joystate between 072 and 100
ifNotEqual, sent_button, 13
{
sent_button = 13
Send, +{NumpadAdd 1}
}
Sleep, 25
}
return[/code]That has all the 13 "views" configured for Shift+Keys@Numpad, check "AutoHotkey" help if you want to put there your own.
I won't give any support to this solution, but I just say: It works. You get all 13 FOVs to your z-axis in 6DOF, the closer you go to your TIR, the more you'll zoom in.
That script shall be my christmaspresent for the community
Ps. That script might need some modifying before it works.
JoystickNumber = 4 ; Increase this to test a joystick other than the first.
JoystickAxis = y ; Set this to the axis you want to use.
Above 2 lines might need modifying...
- Mave
Jagdgeschwader 55 - "Lufthunden"
www.lufthunden.com
[ December 24, 2004, 02:38 PM: Message edited by: Mave_FI ]