;##################################### ;KEYMAPPING AND SETTINGS FOR VR ZOOM AND MASK ONLY ;##################################### ;---------------- ; Key bindings: ;---------------- ; Key bindings: For A-Z and 0-9 on the number row, just use that single ; character. For everything else (including mouse buttons), use the virtual key ; name (with or without the VK_ prefix) or hex code from this article: ; http://msdn.microsoft.com/en-us/library/windows/desktop/dd375731(v=vs.85).aspx ; ; Key combinations can be specified by separating key names with spaces, e.g. ; "Shift Q". It is also possible to indicate that a key must *not* be held for ; the binding to activate, e.g. "NO_ALT F1" would prevent the binding from ; activating when taking a 3D Screenshot with Alt F1. "NO_MODIFIERS" may be ; used as a shorthand for excluding all standard modifiers (Ctrl, Alt, Shift, ; Windows). ; ; Keys can also be from XBox controllers using: ; XB_LEFT_TRIGGER, XB_RIGHT_TRIGGER, ; XB_LEFT_SHOULDER, XB_RIGHT_SHOULDER, ; XB_LEFT_THUMB, XB_RIGHT_THUMB, ; XB_DPAD_UP, XB_DPAD_DOWN, XB_DPAD_LEFT, XB_DPAD_RIGHT, ; XB_A, XB_B, XB_X, XB_Y, XB_START, XB_BACK, XB_GUIDE ; By default all attached controllers are used - to associate a binding with a ; specific controller add the controller number 1-4 to the prefix, like ; XB2_LEFT_TRIGGER, though this may be more useful for hunting than playing. ;######################################### [Constants] ; do not modify this value $newConvergenceSetting = 1.0 ;---------------- ; original zoom convergence values for zoom settings, they may be overwritten and stored in bin\d3dx_user.ini ; $zoomXoffset* = horizontal zoomed view shift for convergence ; $maskHorizOffset* = Xvalue for zoom mask center offset. Set 1.0 to remove it. ; You may modify these values ;---------------- ; low zoom values convergence global persist $zoomXoffsetLow = 0.0 global persist $zoomYoffsetLow = 0.0 global persist $maskHorizOffsetLow = 0.0 ; med zoom values convergence global persist $zoomXoffsetMed = 0.6 global persist $zoomYoffsetMed = -0.425 global persist $maskHorizOffsetMed = 0.0 ; high zoom values convergence global persist $zoomXoffsetHigh = 1.31 global persist $zoomYoffsetHigh = -0.85 global persist $maskHorizOffsetHigh = 0.05 ; IPD like modifier global persist $IPDXoffsetValue = 0.004 global persist $IPDMode = 0 ;coarse or fine values global $coarse = 0.0 global $coarseValue = 0.0075 global $fineValue = 0.002 global $currentValue ;---------------- ; external zoomMask settings ;---------------- ; vertical ratio ; the lower it is the larger is the mask in the direction ; set it to 0.1 to remove the binocular mask $maskVertScale = 1.3 ; z4 = 1.3 ; horizontal ratio ; the lower it is the larger is the mask in the direction ; set it to 0.1 to remove the binocular mask $maskHorizScale = 0.9 ; z6 = 0.9 ;scale of target scale, the higher the smaller ;Automatically scaled by zoom. ;Set it to 0.1 to remove the binocular mask $targetSize = 8.0 ; used to avoid Pimax 5K+ /8K parallel projection global $cosProj = 1 global $sinProj = 0 ; used for "check 6" view rotation global $cosView = 1 global $sinView = 0 ;---------------- ; for debugging purpose ;---------------- ; $zoomFactor = 2.0 ; $maskVertScale = 0.1 ; $maskHorizScale = 0.1 ; $zoomSetting = 1 ; $zoomXoffset = 0.0 ; $maskHorizOffset = 0.05 [Key1] ;set low zoom on Key = VK_PRIOR ; Key = NO_MODIFIERS VK_DOWN type = hold ; modify here the first value you want to use for zoom increase $zoomFactor = 1.5 ; vertical zoomed view shift (seems not needed) $zoomYoffset = 0.0 ;zoom target center vertial offset (seems not needed) $maskVertOffset = 0.0 ; to disable targetsize for low zoom $targetSize = 0.1 ;------------------------ ; Do not modify this line run = CommandListZoomMin [Key2] ;set med zoom on Key = VK_HOME ; Key = NO_MODIFIERS VK_RIGHT type = hold ; modify here the first value you want to use for zoom increase $zoomFactor = 5.0 ; vertical zoomed view shift (seems not needed) $zoomYoffset = 0.0 ;Yvalue for zoom mask center offset (seems not needed) $maskVertOffset = 0.0 ;------------------------ ; Do not modify this line run = CommandListZoomMed [Key3] ;set high zoom on Key = VK_INSERT ; Key = NO_MODIFIERS VK_UP type = hold ; modify here the first value you want to use for zoom increase $zoomFactor = 10.0 ; vertical zoomed view shift (seems not needed) $zoomYoffset = 0.0 ;Yvalue for zoom mask center offset (seems not needed) . $maskVertOffset = 0.0 ;------------------------ ; Do not modify this line run = CommandListZoomHigh [Key8] ;Global Shift toogle ; Key = ALT no_shift no_ctrl VK_LEFT Key = ALT no_shift no_ctrl VK_DELETE type = cycle ; modify here the first value for global shift run = CommandListIPDOn, CommandListIPDOff ;------------------------------------------------------------------------------------------------------ ; Key mapping to setup zoom settings ;------------------------------------------------------------------------------------------------------ ; [Keyj] ;increase zoom convergence ; Key = SHIFT no_ctrl no_alt VK_NEXT ; type = hold ;------------------------ ; Do not modify this line ; run = CommandListIncreaseConv ; [Keyl] ;decrease zoom convergence ; Key = SHIFT no_ctrl no_alt VK_END ; type = hold ;------------------------ ; Do not modify this line ; run = CommandListDecreaseConv ; [Keym] ;increase aims convergence ; Key = no_shift no_ctrl ALT VK_NEXT ; type = hold ;------------------------ ; Do not modify this line ; run = CommandListIncreaseConvAims ; [Keyn] ;decrease aims convergence ; Key = no_shift no_ctrl ALT VK_END ; type = hold ;------------------------ ; Do not modify this line ; run = CommandListDecreaseConvAims ; [Keyo] ; toogle binocular mask ; Key = SHIFT no_ctrl no_alt VK_DELETE ; type = cycle ; ------------------------ ; Do not modify this line ; $binocularMask = 0, 1 ; [Keyp] ; increase Yoffset ; Key = no_shift CTRL no_alt VK_NEXT ; type = hold ; ------------------------ ; Do not modify this line ; run = CommandListIncreaseYoffset ; [Keyq] ; decrease Yoffet ; Key = no_shift CTRL no_alt VK_END ; type = hold ; ------------------------ ; Do not modify this line ; run = CommandListDecreaseYoffset ; [Keyr] ; increase IPDOffset ; Key = VK_ADD ; type = hold ; ------------------------ ; Do not modify this line ; run = CommandListIncreaseIPDoffset ; [Keys] ; decrease IPDOffset5 ; Key = VK_SUBTRACT ; type = hold ; ------------------------ ; Do not modify this line ; run = CommandListDecreaseIPDoffset ; [Keyt] ; toggle coarse/fine settings ; Key = no_shift CTRL no_alt VK_DELETE ; type = cycle ; ------------------------ ; Do not modify this line ; $coarse = 0.0, 1.0 ;------------------------------------------------------------------------------------------------------ ; functions used to use interactively modified convergence values ; not to be modified ;------------------------------------------------------------------------------------------------------ [CommandListZoomMin] pre $zoomSetting = 1 pre $zoomXoffset = $zoomXoffsetLow pre $zoomYoffset = $zoomYoffsetLow pre $maskHorizOffset = $maskHorizOffsetLow post $zoomXoffset = 0.0 post $zoomYoffset = 0.0 post $maskHorizOffset = 0.0 post $zoomSetting = 0 [CommandListZoomMed] pre $zoomSetting = 2 pre $zoomXoffset = $zoomXoffsetMed pre $zoomYoffset = $zoomYoffsetMed pre $maskHorizOffset = $maskHorizOffsetMed post $zoomXoffset = 0.0 post $zoomYoffset = 0.0 post $maskHorizOffset = 0.0 post $zoomSetting = 0 [CommandListZoomHigh] pre $zoomSetting = 3 pre $zoomXoffset = $zoomXoffsetHigh pre $zoomYoffset = $zoomYoffsetHigh pre $maskHorizOffset = $maskHorizOffsetHigh post $zoomXoffset = 0.0 post $zoomYoffset = 0.0 post $maskHorizOffset = 0.0 post $zoomSetting = 0 [CommandListIncreaseConv] if $coarse == 1 $currentValue = $coarseValue else $currentValue = $fineValue endif if $zoomSetting == 1 $zoomXoffsetLow = $zoomXoffsetLow + $currentValue $zoomXoffset = $zoomXoffsetLow endif if $zoomSetting == 2 $zoomXoffsetMed = $zoomXoffsetMed + $currentValue $zoomXoffset = $zoomXoffsetMed endif if $zoomSetting == 3 $zoomXoffsetHigh = $zoomXoffsetHigh + $currentValue $zoomXoffset = $zoomXoffsetHigh endif [CommandListDecreaseConv] if $coarse == 1 $currentValue = $coarseValue else $currentValue = $fineValue endif if $zoomSetting == 1 $zoomXoffsetLow = $zoomXoffsetLow - $currentValue $zoomXoffset = $zoomXoffsetLow endif if $zoomSetting == 2 $zoomXoffsetMed = $zoomXoffsetMed - $currentValue $zoomXoffset = $zoomXoffsetMed endif if $zoomSetting == 3 $zoomXoffsetHigh = $zoomXoffsetHigh - $currentValue $zoomXoffset = $zoomXoffsetHigh endif [CommandListIncreaseConvAims] if $zoomSetting == 1 $maskHorizOffsetLow = $maskHorizOffsetLow + $currentValue $maskHorizOffset = $maskHorizOffsetLow endif if $zoomSetting == 2 $maskHorizOffsetMed = $maskHorizOffsetMed + $currentValue $maskHorizOffset = $maskHorizOffsetMed endif if $zoomSetting == 3 $maskHorizOffsetHigh = $maskHorizOffsetHigh + $currentValue $maskHorizOffset = $maskHorizOffsetHigh endif [CommandListDecreaseConvAims] if $zoomSetting == 1 $maskHorizOffsetLow = $maskHorizOffsetLow - $currentValue $maskHorizOffset = $maskHorizOffsetLow endif if $zoomSetting == 2 $maskHorizOffsetMed = $maskHorizOffsetMed - $currentValue $maskHorizOffset = $maskHorizOffsetMed endif if $zoomSetting == 3 $maskHorizOffsetHigh = $maskHorizOffsetHigh - $currentValue $maskHorizOffset = $maskHorizOffsetHigh endif [CommandListIncreaseYoffset] if $zoomSetting == 1 $zoomYoffsetLow = $zoomYoffsetLow + $currentValue $zoomYoffset = $zoomYoffsetLow endif if $zoomSetting == 2 $zoomYoffsetMed = $zoomYoffsetMed + $currentValue $zoomYoffset = $zoomYoffsetMed endif if $zoomSetting == 3 $zoomYoffsetHigh = $zoomYoffsetHigh + $currentValue $zoomYoffset = $zoomYoffsetHigh endif [CommandListDecreaseYoffset] if $zoomSetting == 1 $zoomYoffsetLow = $zoomYoffsetLow - $currentValue $zoomYoffset = $zoomYoffsetLow endif if $zoomSetting == 2 $zoomYoffsetMed = $zoomYoffsetMed - $currentValue $zoomYoffset = $zoomYoffsetMed endif if $zoomSetting == 3 $zoomYoffsetHigh = $zoomYoffsetHigh - $currentValue $zoomYoffset = $zoomYoffsetHigh endif [CommandListIncreaseIPDoffset] $IPDXoffsetValue = $IPDXoffsetValue + $currentValue $IPDXoffset = $IPDXoffsetValue [CommandListDecreaseIPDoffset] $IPDXoffsetValue = $IPDXoffsetValue - $currentValue $IPDXoffset = $IPDXoffsetValue ; [CommandListBinocularFlag] ; $binocularMask = 0,1 [CommandListIPDOn] $IPDXoffset = $IPDXoffsetValue [CommandListIPDOff] $IPDXoffset = 0