Changes to the view system

 

well, the basic view system hasn't changed [in practice, but it much better code. thanks rickb!] but is much easier to map and support for 4 way hats have been added.

what's new..
[note: this changed several patches ago, just took me awhile to write about it]

no longer do you need to map combo keys to get your up or down views, simply map your joystick shift view buttons to 'look up' or 'look down'.

pressing the 'look up' and 'look down' keys on thier own will produce the look straight up view, and look down into lap view [same as before]

but now if you press these keys in conjunction with another view such as 'forward' or 'back left', you'll get 'look forward + up' or 'look back + left + up'. these two functions have become automatic shift view functions. so no need to map out like crazy all those + up and + down functions with combo keys to get the shifted views. upon a fresh install or default of keymaps, simply map the buttons you use to 'look up' and 'look down' the rest is done automagically.

[the redundant + up and + down views were kept to keep current keymaps stable and also to provide advanced programming possibilities [ie mapping views to more than one hat, some people like to map hat pov n to 'look forward + up' ect.. NO PROGRAMMING POSSIBILITY HAS CHANGED]

current keymaps are not effected in anyway, you do not need to change anything but next time you map, your keymapping is ALOT easier..

[the way i map is i use my pov hat and map 2 js buttons to shift up and down views, now all i have to do is map 2 js buttons, instead of combo keymapping like 16 to get the same effect]

this is the OLD way you had to map to get 'look up' and 'look down' views



and this is the new way, much easier

Support for 4-way hat's

what this entails is that on the numpad, pressing numpad 8 and numpad 6 will give you the numpad 9 view. tho there still is a numpad 9 view and you could just press that but that doesn't work for 4 way hats which only have 4 programmable points. so on a 4 way hat you would map numpad 8 to hat n, numpad 6 to hat e, then when you pressed diagonally on the 4 way hat in that direction, it produces the dual keypress of numpad 8+numpad 6 to get the diagonal view.

this is why 'look back' was added. there is no true 'check 6' view in ww2ol [and probably never will be] so a 'dummy view' was added so you could blend the 2 views for back diagonal views. pressing the look back key on it's on will produce the 'look back + left' view but this is just so it did somehing....

to map a 4 way hat, first remap 'look down' from numpad 2 to something else, say 'numpad +'

then map 'look back' to numpad 2.

now remove the keymaps to the diagonal views using the numpad. use 'clear keymap' where you see numpad 9,3,1,and 7 in the keymapper.

now in your [b]joysticks programming software[/b] map your 4 way hat n to numpad 8, hat e to numpad 6, hat s to numpad 2, hat w to numpad 4. [some ch hats have this emulation hardcoded in their drivers already].

then map your js buttons for 'look up' or 'look down'.

you should now have complete functionality of an 8 way hat with a 4 way hat...