Compare commits
6 Commits
7150f1d9e0
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| e3f47963dd | |||
| 494115c3c9 | |||
| 2adb97b773 | |||
|
85f8b9a932
|
|||
|
f2a69dd4fa
|
|||
|
f077bd40b5
|
@@ -52,10 +52,10 @@ $th_n_l,Unset
|
||||
$th_n_f,Unset
|
||||
$th_n_p,Unset
|
||||
$sc_top_minus,Unset
|
||||
$sc_top_p,Unset
|
||||
$sc_top_press,Unset
|
||||
$sc_top_plus,Unset
|
||||
$sc_bot_minus,Unset
|
||||
$sc_bot_p,Unset
|
||||
$sc_bot_press,Unset
|
||||
$sc_bot_plus,Unset
|
||||
$nottdc_b,Unset
|
||||
$nottdc_u,Unset
|
||||
|
||||
|
24
generate.sh
24
generate.sh
@@ -20,12 +20,18 @@ if [ ! -f "$IMAGE_FILE" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# awk -F, 'NR==FNR {map[$1] = $2; next} {for (key in map) gsub("\\b" key "\\b", map[key]); print}' $MAPPING_FILE $IMAGE_FILE
|
||||
|
||||
|
||||
awk -F, 'NR==FNR {map[$1] = $2; next} END {for (key in map) print key, "=>", map[key]}' $MAPPING_FILE
|
||||
|
||||
|
||||
# while IFS=, read -r col1 col2 _; do
|
||||
# echo "$col1, $col2"
|
||||
# done < "$MAPPING_FILE`"
|
||||
awk -F, '
|
||||
NR==FNR {
|
||||
map[$1] = $2
|
||||
next
|
||||
}
|
||||
{
|
||||
line = $0
|
||||
for (key in map) {
|
||||
# Escape special characters in the key
|
||||
gsub_key = key
|
||||
gsub_key = gensub(/[$.*+?^{}|()[\]\\]/, "\\\\\\0", "g", gsub_key)
|
||||
gsub(gsub_key, map[key], line)
|
||||
}
|
||||
print line
|
||||
}' $MAPPING_FILE $IMAGE_FILE
|
||||
|
||||
70
layouts/f14-pilot.csv
Normal file
70
layouts/f14-pilot.csv
Normal file
@@ -0,0 +1,70 @@
|
||||
$trigger,Trigger
|
||||
$pinky_big,Unset
|
||||
$pinky_s,Wheel Break
|
||||
$pickle,Pickle
|
||||
$joy_n_b,AP/NWS
|
||||
$joy_n_r,Unset
|
||||
$joy_n_l,Unset
|
||||
$joy_n_f,Unset
|
||||
$joy_n_p,Unset
|
||||
$pov_b,Unset
|
||||
$pov_r,Unset
|
||||
$pov_l,Unset
|
||||
$pov_f,Unset
|
||||
$trim_b,Trim Up
|
||||
$trim_r,Trim Right
|
||||
$trim_l,Trim Left
|
||||
$trim_f,Trim Down
|
||||
$ws_b,WS Down
|
||||
$ws_r,WS Press
|
||||
$ws_l,Unset
|
||||
$ws_f,WS Up
|
||||
$com_2,UHF 2
|
||||
$com_1,UHF 1
|
||||
$cm_u,Unset
|
||||
$cm_d,Unset
|
||||
$scroll_plus,Unset
|
||||
$scroll_minus,Unset
|
||||
$gear_u,Gear Up
|
||||
$gear_d,Gear Down
|
||||
$flaps_u,Flaps Up
|
||||
$flaps_d,Flaps Down
|
||||
$air_u,SB Extend
|
||||
$air_d,SB Retract
|
||||
$mode_m1,A/G mode
|
||||
$mode_m2,A/A mode
|
||||
$mode_s1,Cruise mode
|
||||
$sw_2_u,Unset
|
||||
$sw_2_d,Unset
|
||||
$sw_1_u,Unset
|
||||
$sw_1_d,Unset
|
||||
$rot_bot_plus,Unset
|
||||
$rot_bot_minus,Unset
|
||||
$rot_top_plus,Unset
|
||||
$rot_top_minus,Unset
|
||||
$sw_4_u,ARM
|
||||
$sw_4_d,SAFE
|
||||
$sw_3_u,Unset
|
||||
$sw_3_d,Unset
|
||||
$th_n_b,Unset
|
||||
$th_n_r,Unset
|
||||
$th_n_l,Unset
|
||||
$th_n_f,Unset
|
||||
$th_n_p,Unset
|
||||
$sc_top_minus,Unset
|
||||
$sc_top_press,Unset
|
||||
$sc_top_plus,Unset
|
||||
$sc_bot_minus,Unset
|
||||
$sc_bot_press,Afterburner
|
||||
$sc_bot_plus,Unset
|
||||
$nottdc_b,Wing aft
|
||||
$nottdc_u,Wing bomb
|
||||
$nottdc_f,Wing fwd
|
||||
$nottdc_d,Wing auto
|
||||
$tdc_b,Unset
|
||||
$tdc_u,Unset
|
||||
$tdc_f,Unset
|
||||
$tdc_d,Unset
|
||||
$sld_f,Unset
|
||||
$sld_b,Unset
|
||||
$th_btn_e,Unset
|
||||
|
70
layouts/f14-rio.csv
Normal file
70
layouts/f14-rio.csv
Normal file
@@ -0,0 +1,70 @@
|
||||
$trigger,Unset
|
||||
$pinky_big,Unset
|
||||
$pinky_s,Unset
|
||||
$pickle,Unset
|
||||
$joy_n_b,Unset
|
||||
$joy_n_r,Unset
|
||||
$joy_n_l,Unset
|
||||
$joy_n_f,Unset
|
||||
$joy_n_p,Unset
|
||||
$pov_b,Unset
|
||||
$pov_r,Unset
|
||||
$pov_l,Unset
|
||||
$pov_f,Unset
|
||||
$trim_b,Unset
|
||||
$trim_r,Unset
|
||||
$trim_l,Unset
|
||||
$trim_f,Unset
|
||||
$ws_b,Unset
|
||||
$ws_r,Unset
|
||||
$ws_l,Unset
|
||||
$ws_f,Unset
|
||||
$com_2,Unset
|
||||
$com_1,Unset
|
||||
$cm_u,Unset
|
||||
$cm_d,Unset
|
||||
$scroll_plus,Unset
|
||||
$scroll_minus,Unset
|
||||
$gear_u,Unset
|
||||
$gear_d,Unset
|
||||
$flaps_u,Unset
|
||||
$flaps_d,Unset
|
||||
$air_u,Unset
|
||||
$air_d,Unset
|
||||
$mode_m1,Unset
|
||||
$mode_m2,Unset
|
||||
$mode_s1,Unset
|
||||
$sw_2_u,Unset
|
||||
$sw_2_d,Unset
|
||||
$sw_1_u,Unset
|
||||
$sw_1_d,Unset
|
||||
$rot_bot_plus,Unset
|
||||
$rot_bot_minus,Unset
|
||||
$rot_top_plus,Unset
|
||||
$rot_top_minus,Unset
|
||||
$sw_4_u,Unset
|
||||
$sw_4_d,Unset
|
||||
$sw_3_u,Unset
|
||||
$sw_3_d,Unset
|
||||
$th_n_b,Unset
|
||||
$th_n_r,Unset
|
||||
$th_n_l,Unset
|
||||
$th_n_f,Unset
|
||||
$th_n_p,Unset
|
||||
$sc_top_minus,Unset
|
||||
$sc_top_press,Unset
|
||||
$sc_top_plus,Unset
|
||||
$sc_bot_minus,Unset
|
||||
$sc_bot_press,Unset
|
||||
$sc_bot_plus,Unset
|
||||
$nottdc_b,Unset
|
||||
$nottdc_u,Unset
|
||||
$nottdc_f,Unset
|
||||
$nottdc_d,Unset
|
||||
$tdc_b,Unset
|
||||
$tdc_u,Unset
|
||||
$tdc_f,Unset
|
||||
$tdc_d,Unset
|
||||
$sld_f,Unset
|
||||
$sld_b,Unset
|
||||
$th_btn_e,Unset
|
||||
|
70
layouts/fa18.csv
Normal file
70
layouts/fa18.csv
Normal file
@@ -0,0 +1,70 @@
|
||||
$trigger,Gun Trigger
|
||||
$pinky_big,AP/NWS Disengage
|
||||
$pinky_s,Wheel Brake
|
||||
$pickle,Pickle
|
||||
$joy_n_b,Unset
|
||||
$joy_n_r,Unset
|
||||
$joy_n_l,Unset
|
||||
$joy_n_f,Unset
|
||||
$joy_n_p,NWS/Undesignate
|
||||
$pov_b,SCS Aft
|
||||
$pov_r,SCS Right
|
||||
$pov_l,SCS Left
|
||||
$pov_f,SCS Fwd
|
||||
$trim_b,Trim Pull
|
||||
$trim_r,Trim Right
|
||||
$trim_l,Trim Left
|
||||
$trim_f,Trim Push
|
||||
$ws_b,Sidewinder
|
||||
$ws_r,Sparrow
|
||||
$ws_l,Gun
|
||||
$ws_f,AMRAAM
|
||||
$com_2,COMM 2
|
||||
$com_1,COMM 1
|
||||
$cm_u,FLARE
|
||||
$cm_d,CHAFF
|
||||
$scroll_plus,Unset
|
||||
$scroll_minus,Unset
|
||||
$gear_u,Gear Up
|
||||
$gear_d,Gear Down
|
||||
$flaps_u,Flaps Up
|
||||
$flaps_d,Flaps Down
|
||||
$air_u,SB Extend
|
||||
$air_d,SB Retract
|
||||
$mode_m1,A/G
|
||||
$mode_m2,A/A
|
||||
$mode_s1,ARM/SAFE
|
||||
$sw_2_u,Arm
|
||||
$sw_2_d,Safe
|
||||
$sw_1_u,Unset
|
||||
$sw_1_d,Unset
|
||||
$rot_bot_plus,Unset
|
||||
$rot_bot_minus,Unset
|
||||
$rot_top_plus,Unset
|
||||
$rot_top_minus,Unset
|
||||
$sw_4_u,LTD/R Arm
|
||||
$sw_4_d,LTD/R Safe
|
||||
$sw_3_u,Hook Up
|
||||
$sw_3_d,Hook Down
|
||||
$th_n_b,Unset
|
||||
$th_n_r,Unset
|
||||
$th_n_l,Unset
|
||||
$th_n_f,Unset
|
||||
$th_n_p,Unset
|
||||
$sc_top_minus,Unset
|
||||
$sc_top_press,ATC
|
||||
$sc_top_plus,Unset
|
||||
$sc_bot_minus,Unset
|
||||
$sc_bot_press,Afterburner
|
||||
$sc_bot_plus,Unset
|
||||
$nottdc_b,RAID/FLIR FOV
|
||||
$nottdc_u,Cage/Uncage
|
||||
$nottdc_f,RDR Up
|
||||
$nottdc_d,RDR Down
|
||||
$tdc_b,TDC Left
|
||||
$tdc_u,TDC Up
|
||||
$tdc_f,TDC Right
|
||||
$tdc_d,TDC Down
|
||||
$sld_f,Unset
|
||||
$sld_b,Unset
|
||||
$th_btn_e,TDC Depress
|
||||
|
70
layouts/su-25-t.csv
Normal file
70
layouts/su-25-t.csv
Normal file
@@ -0,0 +1,70 @@
|
||||
$trigger,Trigger
|
||||
$pinky_big,Unset
|
||||
$pinky_s,Breake
|
||||
$pickle,Unset
|
||||
$joy_n_b,Unset
|
||||
$joy_n_r,Unset
|
||||
$joy_n_l,Unset
|
||||
$joy_n_f,Unset
|
||||
$joy_n_p,Unset
|
||||
$pov_b,Unset
|
||||
$pov_r,Unset
|
||||
$pov_l,Unset
|
||||
$pov_f,Unset
|
||||
$trim_b,Trim Up
|
||||
$trim_r,Trim Right
|
||||
$trim_l,Trim Left
|
||||
$trim_f,Trim Down
|
||||
$ws_b,Weapon change
|
||||
$ws_r,Next WP
|
||||
$ws_l,Prev. WP
|
||||
$ws_f,Cannon
|
||||
$com_2,Unset
|
||||
$com_1,Unset
|
||||
$cm_u,FLARE
|
||||
$cm_d,CHAFF
|
||||
$scroll_plus,Target Size +
|
||||
$scroll_minus,Target Size -
|
||||
$gear_u,Gear Up
|
||||
$gear_d,Gear Down
|
||||
$flaps_u,Flaps Up
|
||||
$flaps_d,Flaps Down
|
||||
$air_u,SB On
|
||||
$air_d,SB Off
|
||||
$mode_m1,A/A mode
|
||||
$mode_m2,A/G mode
|
||||
$mode_s1,Nav mode
|
||||
$sw_2_u,ECM
|
||||
$sw_2_d,IR Jam
|
||||
$sw_1_u,EO On/Off
|
||||
$sw_1_d,ELINT On/Off
|
||||
$rot_bot_plus,Unset
|
||||
$rot_bot_minus,Unset
|
||||
$rot_top_plus,Unset
|
||||
$rot_top_minus,Unset
|
||||
$sw_4_u,Elec. Power
|
||||
$sw_4_d,Canopy
|
||||
$sw_3_u,Engine Start
|
||||
$sw_3_d,Engine Stop
|
||||
$th_n_b,Unset
|
||||
$th_n_r,Unset
|
||||
$th_n_l,Unset
|
||||
$th_n_f,Unset
|
||||
$th_n_p,Unset
|
||||
$sc_top_minus,Unset
|
||||
$sc_top_press,Unset
|
||||
$sc_top_plus,Unset
|
||||
$sc_bot_minus,Unset
|
||||
$sc_bot_press,Unset
|
||||
$sc_bot_plus,Unset
|
||||
$nottdc_b,Zoom out
|
||||
$nottdc_u,Unset
|
||||
$nottdc_f,Zoom in
|
||||
$nottdc_d,Target unlock
|
||||
$tdc_b,TDC Left
|
||||
$tdc_u,TDC Up
|
||||
$tdc_f,TDC Right
|
||||
$tdc_d,TDC Down
|
||||
$sld_f,Unset
|
||||
$sld_b,Unset
|
||||
$th_btn_e,Target Lock
|
||||
|
70
layouts/su-33.csv
Normal file
70
layouts/su-33.csv
Normal file
@@ -0,0 +1,70 @@
|
||||
$trigger,Unset
|
||||
$pinky_big,Unset
|
||||
$pinky_s,Unset
|
||||
$pickle,Unset
|
||||
$joy_n_b,Unset
|
||||
$joy_n_r,Unset
|
||||
$joy_n_l,Unset
|
||||
$joy_n_f,Unset
|
||||
$joy_n_p,Unset
|
||||
$pov_b,Unset
|
||||
$pov_r,Unset
|
||||
$pov_l,Unset
|
||||
$pov_f,Unset
|
||||
$trim_b,Unset
|
||||
$trim_r,Unset
|
||||
$trim_l,Unset
|
||||
$trim_f,Unset
|
||||
$ws_b,Unset
|
||||
$ws_r,Unset
|
||||
$ws_l,Unset
|
||||
$ws_f,Unset
|
||||
$com_2,Unset
|
||||
$com_1,Unset
|
||||
$cm_u,Unset
|
||||
$cm_d,Unset
|
||||
$scroll_plus,Unset
|
||||
$scroll_minus,Unset
|
||||
$gear_u,Unset
|
||||
$gear_d,Unset
|
||||
$flaps_u,Unset
|
||||
$flaps_d,Unset
|
||||
$air_u,Unset
|
||||
$air_d,Unset
|
||||
$mode_m1,Unset
|
||||
$mode_m2,Unset
|
||||
$mode_s1,Unset
|
||||
$sw_2_u,Unset
|
||||
$sw_2_d,Unset
|
||||
$sw_1_u,Unset
|
||||
$sw_1_d,Unset
|
||||
$rot_bot_plus,Unset
|
||||
$rot_bot_minus,Unset
|
||||
$rot_top_plus,Unset
|
||||
$rot_top_minus,Unset
|
||||
$sw_4_u,Unset
|
||||
$sw_4_d,Unset
|
||||
$sw_3_u,Unset
|
||||
$sw_3_d,Unset
|
||||
$th_n_b,Unset
|
||||
$th_n_r,Unset
|
||||
$th_n_l,Unset
|
||||
$th_n_f,Unset
|
||||
$th_n_p,Unset
|
||||
$sc_top_minus,Unset
|
||||
$sc_top_press,Unset
|
||||
$sc_top_plus,Unset
|
||||
$sc_bot_minus,Unset
|
||||
$sc_bot_press,Unset
|
||||
$sc_bot_plus,Unset
|
||||
$nottdc_b,Unset
|
||||
$nottdc_u,Unset
|
||||
$nottdc_f,Unset
|
||||
$nottdc_d,Unset
|
||||
$tdc_b,Unset
|
||||
$tdc_u,Unset
|
||||
$tdc_f,Unset
|
||||
$tdc_d,Unset
|
||||
$sld_f,Unset
|
||||
$sld_b,Unset
|
||||
$th_btn_e,Unset
|
||||
|
15
x56.drawio
15
x56.drawio
@@ -1,6 +1,6 @@
|
||||
<mxfile host="app.diagrams.net" modified="2024-05-06T15:16:22.160Z" agent="Mozilla/5.0 (X11; Linux x86_64; rv:124.0) Gecko/20100101 Firefox/124.0" etag="0RElBD6DVqZAe0D4i3uN" version="24.3.1" type="device">
|
||||
<mxfile host="app.diagrams.net" modified="2024-05-31T12:19:41.545Z" agent="Mozilla/5.0 (X11; Linux x86_64; rv:125.0) Gecko/20100101 Firefox/125.0" etag="taQBMJWEeq_byf9xWQTI" version="24.4.13" type="device">
|
||||
<diagram name="Page-1" id="G6F37xmAHczAOBARkiJW">
|
||||
<mxGraphModel dx="982" dy="539" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" background="#FFFFFF" math="0" shadow="0">
|
||||
<mxGraphModel dx="1187" dy="652" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" background="#FFFFFF" math="0" shadow="0">
|
||||
<root>
|
||||
<mxCell id="0" />
|
||||
<mxCell id="1" parent="0" />
|
||||
@@ -167,8 +167,7 @@
|
||||
<mxPoint x="-127" y="140" as="targetPoint" />
|
||||
<mxPoint x="80" y="49.8" as="sourcePoint" />
|
||||
<Array as="points">
|
||||
<mxPoint x="-126" y="40" />
|
||||
<mxPoint x="-126" y="140" />
|
||||
<mxPoint x="-127" y="40" />
|
||||
</Array>
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
@@ -204,9 +203,7 @@
|
||||
<mxPoint x="-127" y="-10" as="targetPoint" />
|
||||
<mxPoint y="40" as="sourcePoint" />
|
||||
<Array as="points">
|
||||
<mxPoint y="40" />
|
||||
<mxPoint x="-126" y="40" />
|
||||
<mxPoint x="-126" y="-10" />
|
||||
<mxPoint x="-127" y="40" />
|
||||
</Array>
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
@@ -577,7 +574,7 @@
|
||||
<mxCell id="4BoNBnlQ-HgFUmsHHxLr-192" value="$sc_top_minus" style="rounded=0;strokeColor=default;fillStyle=solid;fillColor=#CCCCCC;fontColor=#000000;align=left;verticalAlign=middle;horizontal=1;fontSize=11;fontFamily=Helvetica;fontStyle=0;labelBackgroundColor=none;textShadow=0;whiteSpace=wrap;html=1;container=0;" parent="4BoNBnlQ-HgFUmsHHxLr-191" vertex="1">
|
||||
<mxGeometry y="20" width="80" height="20" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="4BoNBnlQ-HgFUmsHHxLr-193" value="$sc_top_p" style="rounded=0;strokeColor=default;fillStyle=solid;fillColor=#CCCCCC;fontColor=#000000;align=left;verticalAlign=middle;horizontal=1;fontSize=11;fontFamily=Helvetica;fontStyle=0;labelBackgroundColor=none;textShadow=0;whiteSpace=wrap;html=1;container=0;" parent="4BoNBnlQ-HgFUmsHHxLr-191" vertex="1">
|
||||
<mxCell id="4BoNBnlQ-HgFUmsHHxLr-193" value="$sc_top_press" style="rounded=0;strokeColor=default;fillStyle=solid;fillColor=#CCCCCC;fontColor=#000000;align=left;verticalAlign=middle;horizontal=1;fontSize=11;fontFamily=Helvetica;fontStyle=0;labelBackgroundColor=none;textShadow=0;whiteSpace=wrap;html=1;container=0;" parent="4BoNBnlQ-HgFUmsHHxLr-191" vertex="1">
|
||||
<mxGeometry y="40" width="80" height="20" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="4BoNBnlQ-HgFUmsHHxLr-194" value="-" style="rounded=0;whiteSpace=wrap;html=1;fontColor=#ffffff;strokeColor=#000000;fillColor=#FF0000;container=0;" parent="4BoNBnlQ-HgFUmsHHxLr-191" vertex="1">
|
||||
@@ -604,7 +601,7 @@
|
||||
<mxCell id="4BoNBnlQ-HgFUmsHHxLr-204" value="$sc_bot_minus" style="rounded=0;strokeColor=default;fillStyle=solid;fillColor=#CCCCCC;fontColor=#000000;align=left;verticalAlign=middle;horizontal=1;fontSize=11;fontFamily=Helvetica;fontStyle=0;labelBackgroundColor=none;textShadow=0;whiteSpace=wrap;html=1;container=0;" parent="4BoNBnlQ-HgFUmsHHxLr-203" vertex="1">
|
||||
<mxGeometry y="20" width="80" height="20" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="4BoNBnlQ-HgFUmsHHxLr-205" value="$sc_bot_p" style="rounded=0;strokeColor=default;fillStyle=solid;fillColor=#CCCCCC;fontColor=#000000;align=left;verticalAlign=middle;horizontal=1;fontSize=11;fontFamily=Helvetica;fontStyle=0;labelBackgroundColor=none;textShadow=0;whiteSpace=wrap;html=1;container=0;" parent="4BoNBnlQ-HgFUmsHHxLr-203" vertex="1">
|
||||
<mxCell id="4BoNBnlQ-HgFUmsHHxLr-205" value="<div>$sc_bot_press</div>" style="rounded=0;strokeColor=default;fillStyle=solid;fillColor=#CCCCCC;fontColor=#000000;align=left;verticalAlign=middle;horizontal=1;fontSize=11;fontFamily=Helvetica;fontStyle=0;labelBackgroundColor=none;textShadow=0;whiteSpace=wrap;html=1;container=0;" parent="4BoNBnlQ-HgFUmsHHxLr-203" vertex="1">
|
||||
<mxGeometry y="40" width="80" height="20" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="4BoNBnlQ-HgFUmsHHxLr-206" value="-" style="rounded=0;whiteSpace=wrap;html=1;fontColor=#ffffff;strokeColor=#000000;fillColor=#FF0000;container=0;" parent="4BoNBnlQ-HgFUmsHHxLr-203" vertex="1">
|
||||
|
||||
Reference in New Issue
Block a user