
=== up ===
name: [up]
short: [up]

=== down ===
name: [down]
short: [down]

=== left ===
name: [left]
short: [left]

=== right ===
name: [right]
short: [right]

=== roll_left ===
name: [roll L]
short: [roll L]

=== roll_right ===
name: [roll R]
short: [roll R]

=== cockpit_up ===
txt: A square window to the outside, with single white dot at its center. A view finder can be used to align the space craft to celestial bodies.

// o1 ref, o2 180d, o3 90d left, o4 90d right

act: clear process

o1 ? roll_left_pressed ? act: set process
    process ? act: clear roll_left_pressed
    process ? act: clear o1
    process ? act: set o3
act: clear process

o1 ? roll_right_pressed ? act: set process
    process ? act: clear roll_right_pressed
    process ? act: clear o1
    process ? act: set o4
act: clear process

o2 ? roll_left_pressed ? act: set process
    process ? act: clear roll_left_pressed
    process ? act: clear o2
    process ? act: set o4
act: clear process

o2 ? roll_right_pressed ? act: set process
    process ? act: clear roll_right_pressed
    process ? act: clear o2
    process ? act: set o3
act: clear process

o3 ? roll_left_pressed ? act: set process
    process ? act: clear roll_left_pressed
    process ? act: clear o3
    process ? act: set o2
act: clear process

o3 ? roll_right_pressed ? act: set process
    process ? act: clear roll_right_pressed
    process ? act: clear o3
    process ? act: set o1
act: clear process

o4 ? roll_left_pressed ? act: set process
    process ? act: clear roll_left_pressed
    process ? act: clear o4
    process ? act: set o1
act: clear process

o4 ? roll_right_pressed ? act: set process
    process ? act: clear roll_right_pressed
    process ? act: clear o4
    process ? act: set o2
act: clear process

// f1

f1 ? o1 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: clear f1
    process ? act: clear o1
    process ? act: set f15
    process ? act: set o1
act: clear process

f1 ? o1 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: clear f1
    process ? act: clear o1
    process ? act: set f18
    process ? act: set o1
act: clear process

f1 ? o1 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: clear f1
    process ? act: clear o1
    process ? act: set f8
    process ? act: set o1
act: clear process

f1 ? o1 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: clear f1
    process ? act: clear o1
    process ? act: set f2
    process ? act: set o1
act: clear process

f1 ? o2 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: clear f1
    process ? act: clear o2
    process ? act: set f18
    process ? act: set o2
act: clear process

f1 ? o2 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: clear f1
    process ? act: clear o2
    process ? act: set f15
    process ? act: set o2
act: clear process

f1 ? o2 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: clear f1
    process ? act: clear o2
    process ? act: set f2
    process ? act: set o2
act: clear process

f1 ? o2 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: clear f1
    process ? act: clear o2
    process ? act: set f8
    process ? act: set o2
act: clear process

f1 ? o3 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: clear f1
    process ? act: clear o3
    process ? act: set f8
    process ? act: set o3
act: clear process

f1 ? o3 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: clear f1
    process ? act: clear o3
    process ? act: set f2
    process ? act: set o3
act: clear process

f1 ? o3 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: clear f1
    process ? act: clear o3
    process ? act: set f18
    process ? act: set o3
act: clear process

f1 ? o3 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: clear f1
    process ? act: clear o3
    process ? act: set f15
    process ? act: set o3
act: clear process

f1 ? o4 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: clear f1
    process ? act: clear o4
    process ? act: set f2
    process ? act: set o4
act: clear process

f1 ? o4 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: clear f1
    process ? act: clear o4
    process ? act: set f8
    process ? act: set o4
act: clear process

f1 ? o4 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: clear f1
    process ? act: clear o4
    process ? act: set f15
    process ? act: set o4
act: clear process

f1 ? o4 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: clear f1
    process ? act: clear o4
    process ? act: set f18
    process ? act: set o4
act: clear process


// f2

f2 ? o1 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: set GBLL_on
act: clear process

f2 ? o1 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: set GBLL_on
act: clear process

f2 ? o1 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: clear f2
    process ? act: clear o1
    process ? act: set f1
    process ? act: set o1
act: clear process

f2 ? o1 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: clear f2
    process ? act: clear o1
    process ? act: set f3
    process ? act: set o1
act: clear process

f2 ? o2 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: set GBLL_on
act: clear process

f2 ? o2 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: set GBLL_on
act: clear process

f2 ? o2 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: clear f2
    process ? act: clear o2
    process ? act: set f3
    process ? act: set o2
act: clear process

f2 ? o2 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: clear f2
    process ? act: clear o2
    process ? act: set f1
    process ? act: set o2
act: clear process

f2 ? o3 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: clear f2
    process ? act: clear o3
    process ? act: set f1
    process ? act: set o3
act: clear process

f2 ? o3 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: clear f2
    process ? act: clear o3
    process ? act: set f3
    process ? act: set o3
act: clear process

f2 ? o3 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: set GBLL_on
act: clear process

f2 ? o3 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: set GBLL_on
act: clear process

f2 ? o4 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: clear f2
    process ? act: clear o4
    process ? act: set f3
    process ? act: set o4
act: clear process

f2 ? o4 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: clear f2
    process ? act: clear o4
    process ? act: set f1
    process ? act: set o4
act: clear process

f2 ? o4 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: set GBLL_on
act: clear process

f2 ? o4 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: set GBLL_on
act: clear process


// f3

f3 ? o1 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: clear f3
    process ? act: clear o1
    process ? act: set f10
    process ? act: set o3
act: clear process

f3 ? o1 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: clear f3
    process ? act: clear o1
    process ? act: set f11
    process ? act: set o3
act: clear process

f3 ? o1 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: clear f3
    process ? act: clear o1
    process ? act: set f2
    process ? act: set o1
act: clear process

f3 ? o1 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: clear f3
    process ? act: clear o1
    process ? act: set f4
    process ? act: set o1
act: clear process

f3 ? o2 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: clear f3
    process ? act: clear o2
    process ? act: set f11
    process ? act: set o4
act: clear process

f3 ? o2 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: clear f3
    process ? act: clear o2
    process ? act: set f10
    process ? act: set o4
act: clear process

f3 ? o2 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: clear f3
    process ? act: clear o2
    process ? act: set f4
    process ? act: set o2
act: clear process

f3 ? o2 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: clear f3
    process ? act: clear o2
    process ? act: set f2
    process ? act: set o2
act: clear process

f3 ? o3 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: clear f3
    process ? act: clear o3
    process ? act: set f2
    process ? act: set o3
act: clear process

f3 ? o3 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: clear f3
    process ? act: clear o3
    process ? act: set f4
    process ? act: set o3
act: clear process

f3 ? o3 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: clear f3
    process ? act: clear o3
    process ? act: set f11
    process ? act: set o2
act: clear process

f3 ? o3 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: clear f3
    process ? act: clear o3
    process ? act: set f10
    process ? act: set o2
act: clear process

f3 ? o4 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: clear f3
    process ? act: clear o4
    process ? act: set f4
    process ? act: set o4
act: clear process

f3 ? o4 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: clear f3
    process ? act: clear o4
    process ? act: set f2
    process ? act: set o4
act: clear process

f3 ? o4 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: clear f3
    process ? act: clear o4
    process ? act: set f10
    process ? act: set o1
act: clear process

f3 ? o4 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: clear f3
    process ? act: clear o4
    process ? act: set f11
    process ? act: set o1
act: clear process


// f4

f4 ? o1 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: set GBLL_on
act: clear process

f4 ? o1 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: set GBLL_on
act: clear process

f4 ? o1 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: clear f4
    process ? act: clear o1
    process ? act: set f3
    process ? act: set o1
act: clear process

f4 ? o1 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: clear f4
    process ? act: clear o1
    process ? act: set f5
    process ? act: set o1
act: clear process

f4 ? o2 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: set GBLL_on
act: clear process

f4 ? o2 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: set GBLL_on
act: clear process

f4 ? o2 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: clear f4
    process ? act: clear o2
    process ? act: set f5
    process ? act: set o2
act: clear process

f4 ? o2 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: clear f4
    process ? act: clear o2
    process ? act: set f3
    process ? act: set o2
act: clear process

f4 ? o3 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: clear f4
    process ? act: clear o3
    process ? act: set f3
    process ? act: set o3
act: clear process

f4 ? o3 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: clear f4
    process ? act: clear o3
    process ? act: set f5
    process ? act: set o3
act: clear process

f4 ? o3 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: set GBLL_on
act: clear process

f4 ? o3 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: set GBLL_on
act: clear process

f4 ? o4 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: clear f4
    process ? act: clear o4
    process ? act: set f5
    process ? act: set o4
act: clear process

f4 ? o4 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: clear f4
    process ? act: clear o4
    process ? act: set f3
    process ? act: set o4
act: clear process

f4 ? o4 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: set GBLL_on
act: clear process

f4 ? o4 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: set GBLL_on
act: clear process


// f5

f5 ? o1 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: clear f5
    process ? act: clear o1
    process ? act: set f16
    process ? act: set o2
act: clear process

f5 ? o1 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: clear f5
    process ? act: clear o1
    process ? act: set f17
    process ? act: set o2
act: clear process

f5 ? o1 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: clear f5
    process ? act: clear o1
    process ? act: set f4
    process ? act: set o1
act: clear process

f5 ? o1 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: clear f5
    process ? act: clear o1
    process ? act: set f6
    process ? act: set o1
act: clear process

f5 ? o2 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: clear f5
    process ? act: clear o2
    process ? act: set f17
    process ? act: set o1
act: clear process

f5 ? o2 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: clear f5
    process ? act: clear o2
    process ? act: set f16
    process ? act: set o1
act: clear process

f5 ? o2 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: clear f5
    process ? act: clear o2
    process ? act: set f6
    process ? act: set o2
act: clear process

f5 ? o2 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: clear f5
    process ? act: clear o2
    process ? act: set f4
    process ? act: set o2
act: clear process

f5 ? o3 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: clear f5
    process ? act: clear o3
    process ? act: set f4
    process ? act: set o3
act: clear process

f5 ? o3 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: clear f5
    process ? act: clear o3
    process ? act: set f6
    process ? act: set o3
act: clear process

f5 ? o3 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: clear f5
    process ? act: clear o3
    process ? act: set f17
    process ? act: set o4
act: clear process

f5 ? o3 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: clear f5
    process ? act: clear o3
    process ? act: set f16
    process ? act: set o4
act: clear process

f5 ? o4 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: clear f5
    process ? act: clear o4
    process ? act: set f6
    process ? act: set o4
act: clear process

f5 ? o4 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: clear f5
    process ? act: clear o4
    process ? act: set f4
    process ? act: set o4
act: clear process

f5 ? o4 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: clear f5
    process ? act: clear o4
    process ? act: set f16
    process ? act: set o3
act: clear process

f5 ? o4 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: clear f5
    process ? act: clear o4
    process ? act: set f17
    process ? act: set o3
act: clear process


// f6

f6 ? o1 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: set GBLL_on
act: clear process

f6 ? o1 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: set GBLL_on
act: clear process

f6 ? o1 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: clear f6
    process ? act: clear o1
    process ? act: set f5
    process ? act: set o1
act: clear process

f6 ? o1 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: clear f6
    process ? act: clear o1
    process ? act: set f7
    process ? act: set o1
act: clear process

f6 ? o2 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: set GBLL_on
act: clear process

f6 ? o2 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: set GBLL_on
act: clear process

f6 ? o2 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: clear f6
    process ? act: clear o2
    process ? act: set f7
    process ? act: set o2
act: clear process

f6 ? o2 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: clear f6
    process ? act: clear o2
    process ? act: set f5
    process ? act: set o2
act: clear process

f6 ? o3 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: clear f6
    process ? act: clear o3
    process ? act: set f5
    process ? act: set o3
act: clear process

f6 ? o3 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: clear f6
    process ? act: clear o3
    process ? act: set f7
    process ? act: set o3
act: clear process

f6 ? o3 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: set GBLL_on
act: clear process

f6 ? o3 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: set GBLL_on
act: clear process

f6 ? o4 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: clear f6
    process ? act: clear o4
    process ? act: set f7
    process ? act: set o4
act: clear process

f6 ? o4 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: clear f6
    process ? act: clear o4
    process ? act: set f5
    process ? act: set o4
act: clear process

f6 ? o4 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: set GBLL_on
act: clear process

f6 ? o4 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: set GBLL_on
act: clear process


// f7

f7 ? o1 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: clear f7
    process ? act: clear o1
    process ? act: set f14
    process ? act: set o4
act: clear process

f7 ? o1 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: clear f7
    process ? act: clear o1
    process ? act: set f13
    process ? act: set o4
act: clear process

f7 ? o1 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: clear f7
    process ? act: clear o1
    process ? act: set f6
    process ? act: set o1
act: clear process

f7 ? o1 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: clear f7
    process ? act: clear o1
    process ? act: set f8
    process ? act: set o1
act: clear process

f7 ? o2 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: clear f7
    process ? act: clear o2
    process ? act: set f13
    process ? act: set o3
act: clear process

f7 ? o2 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: clear f7
    process ? act: clear o2
    process ? act: set f14
    process ? act: set o3
act: clear process

f7 ? o2 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: clear f7
    process ? act: clear o2
    process ? act: set f8
    process ? act: set o2
act: clear process

f7 ? o2 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: clear f7
    process ? act: clear o2
    process ? act: set f6
    process ? act: set o2
act: clear process

f7 ? o3 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: clear f7
    process ? act: clear o3
    process ? act: set f6
    process ? act: set o3
act: clear process

f7 ? o3 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: clear f7
    process ? act: clear o3
    process ? act: set f8
    process ? act: set o3
act: clear process

f7 ? o3 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: clear f7
    process ? act: clear o3
    process ? act: set f13
    process ? act: set o1
act: clear process

f7 ? o3 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: clear f7
    process ? act: clear o3
    process ? act: set f14
    process ? act: set o1
act: clear process

f7 ? o4 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: clear f7
    process ? act: clear o4
    process ? act: set f8
    process ? act: set o4
act: clear process

f7 ? o4 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: clear f7
    process ? act: clear o4
    process ? act: set f6
    process ? act: set o4
act: clear process

f7 ? o4 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: clear f7
    process ? act: clear o4
    process ? act: set f14
    process ? act: set o2
act: clear process

f7 ? o4 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: clear f7
    process ? act: clear o4
    process ? act: set f13
    process ? act: set o2
act: clear process


// f8

f8 ? o1 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: set GBLL_on
act: clear process

f8 ? o1 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: set GBLL_on
act: clear process

f8 ? o1 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: clear f8
    process ? act: clear o1
    process ? act: set f7
    process ? act: set o1
act: clear process

f8 ? o1 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: clear f8
    process ? act: clear o1
    process ? act: set f1
    process ? act: set o1
act: clear process

f8 ? o2 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: set GBLL_on
act: clear process

f8 ? o2 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: set GBLL_on
act: clear process

f8 ? o2 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: clear f8
    process ? act: clear o2
    process ? act: set f1
    process ? act: set o2
act: clear process

f8 ? o2 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: clear f8
    process ? act: clear o2
    process ? act: set f7
    process ? act: set o2
act: clear process

f8 ? o3 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: clear f8
    process ? act: clear o3
    process ? act: set f7
    process ? act: set o3
act: clear process

f8 ? o3 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: clear f8
    process ? act: clear o3
    process ? act: set f1
    process ? act: set o3
act: clear process

f8 ? o3 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: set GBLL_on
act: clear process

f8 ? o3 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: set GBLL_on
act: clear process

f8 ? o4 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: clear f8
    process ? act: clear o4
    process ? act: set f1
    process ? act: set o4
act: clear process

f8 ? o4 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: clear f8
    process ? act: clear o4
    process ? act: set f7
    process ? act: set o4
act: clear process

f8 ? o4 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: set GBLL_on
act: clear process

f8 ? o4 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: set GBLL_on
act: clear process


// f9

f9 ? o1 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: clear f9
    process ? act: clear o1
    process ? act: set f16
    process ? act: set o1
act: clear process

f9 ? o1 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: clear f9
    process ? act: clear o1
    process ? act: set f15
    process ? act: set o1
act: clear process

f9 ? o1 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: clear f9
    process ? act: clear o1
    process ? act: set f14
    process ? act: set o1
act: clear process

f9 ? o1 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: clear f9
    process ? act: clear o1
    process ? act: set f10
    process ? act: set o1
act: clear process

f9 ? o2 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: clear f9
    process ? act: clear o2
    process ? act: set f15
    process ? act: set o2
act: clear process

f9 ? o2 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: clear f9
    process ? act: clear o2
    process ? act: set f15
    process ? act: set o2
act: clear process

f9 ? o2 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: clear f9
    process ? act: clear o2
    process ? act: set f10
    process ? act: set o2
act: clear process

f9 ? o2 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: clear f9
    process ? act: clear o2
    process ? act: set f14
    process ? act: set o2
act: clear process

f9 ? o3 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: clear f9
    process ? act: clear o3
    process ? act: set f14
    process ? act: set o3
act: clear process

f9 ? o3 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: clear f9
    process ? act: clear o3
    process ? act: set f10
    process ? act: set o3
act: clear process

f9 ? o3 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: clear f9
    process ? act: clear o3
    process ? act: set f15
    process ? act: set o3
act: clear process

f9 ? o3 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: clear f9
    process ? act: clear o3
    process ? act: set f16
    process ? act: set o3
act: clear process

f9 ? o4 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: clear f9
    process ? act: clear o4
    process ? act: set f10
    process ? act: set o4
act: clear process

f9 ? o4 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: clear f9
    process ? act: clear o4
    process ? act: set f14
    process ? act: set o4
act: clear process

f9 ? o4 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: clear f9
    process ? act: clear o4
    process ? act: set f16
    process ? act: set o4
act: clear process

f9 ? o4 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: clear f9
    process ? act: clear o4
    process ? act: set f15
    process ? act: set o4
act: clear process


// f10

f10 ? o1 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: set GBLL_on
act: clear process

f10 ? o1 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: set GBLL_on
act: clear process

f10 ? o1 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: clear f10
    process ? act: clear o1
    process ? act: set f9
    process ? act: set o1
act: clear process

f10 ? o1 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: clear f10
    process ? act: clear o1
    process ? act: set f3
    process ? act: set o4
act: clear process

f10 ? o2 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: set GBLL_on
act: clear process

f10 ? o2 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: set GBLL_on
act: clear process

f10 ? o2 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: clear f10
    process ? act: clear o2
    process ? act: set f3
    process ? act: set o3
act: clear process

f10 ? o2 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: clear f10
    process ? act: clear o2
    process ? act: set f9
    process ? act: set o2
act: clear process

f10 ? o3 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: clear f10
    process ? act: clear o3
    process ? act: set f9
    process ? act: set o3
act: clear process

f10 ? o3 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: clear f10
    process ? act: clear o3
    process ? act: set f3
    process ? act: set o1
act: clear process

f10 ? o3 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: set GBLL_on
act: clear process

f10 ? o3 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: set GBLL_on
act: clear process

f10 ? o4 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: clear f10
    process ? act: clear o4
    process ? act: set f3
    process ? act: set o2
act: clear process

f10 ? o4 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: clear f10
    process ? act: clear o4
    process ? act: set f9
    process ? act: set o4
act: clear process

f10 ? o4 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: set GBLL_on
act: clear process

f10 ? o4 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: set GBLL_on
act: clear process


// f11

f11 ? o1 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: set GBLL_on
act: clear process

f11 ? o1 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: set GBLL_on
act: clear process

f11 ? o1 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: clear f11
    process ? act: clear o1
    process ? act: set f3
    process ? act: set o4
act: clear process

f11 ? o1 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: clear f11
    process ? act: clear o1
    process ? act: set f12
    process ? act: set o1
act: clear process

f11 ? o2 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: set GBLL_on
act: clear process

f11 ? o2 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: set GBLL_on
act: clear process

f11 ? o2 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: clear f11
    process ? act: clear o2
    process ? act: set f12
    process ? act: set o2
act: clear process

f11 ? o2 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: clear f11
    process ? act: clear o2
    process ? act: set f3
    process ? act: set o3
act: clear process

f11 ? o3 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: clear f11
    process ? act: clear o3
    process ? act: set f3
    process ? act: set o1
act: clear process

f11 ? o3 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: clear f11
    process ? act: clear o3
    process ? act: set f12
    process ? act: set o3
act: clear process

f11 ? o3 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: set GBLL_on
act: clear process

f11 ? o3 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: set GBLL_on
act: clear process

f11 ? o4 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: clear f11
    process ? act: clear o4
    process ? act: set f1
    process ? act: set o4
act: clear process

f11 ? o4 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: clear f11
    process ? act: clear o4
    process ? act: set f7
    process ? act: set o4
act: clear process

f11 ? o4 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: set GBLL_on
act: clear process

f11 ? o4 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: set GBLL_on
act: clear process


// f12

f12 ? o1 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: clear f12
    process ? act: clear o1
    process ? act: set f17
    process ? act: set o2
act: clear process

f12 ? o1 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: clear f12
    process ? act: clear o1
    process ? act: set f18
    process ? act: set o2
act: clear process

f12 ? o1 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: clear f12
    process ? act: clear o1
    process ? act: set f11
    process ? act: set o1
act: clear process

f12 ? o1 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: clear f12
    process ? act: clear o1
    process ? act: set f13
    process ? act: set o1
act: clear process

f12 ? o2 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: clear f12
    process ? act: clear o2
    process ? act: set f18
    process ? act: set o1
act: clear process

f12 ? o2 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: clear f12
    process ? act: clear o2
    process ? act: set f17
    process ? act: set o1
act: clear process

f12 ? o2 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: clear f12
    process ? act: clear o2
    process ? act: set f13
    process ? act: set o2
act: clear process

f12 ? o2 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: clear f12
    process ? act: clear o2
    process ? act: set f11
    process ? act: set o2
act: clear process

f12 ? o3 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: clear f12
    process ? act: clear o3
    process ? act: set f11
    process ? act: set o3
act: clear process

f12 ? o3 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: clear f12
    process ? act: clear o3
    process ? act: set f13
    process ? act: set o3
act: clear process

f12 ? o3 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: clear f12
    process ? act: clear o3
    process ? act: set f18
    process ? act: set o4
act: clear process

f12 ? o3 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: clear f12
    process ? act: clear o3
    process ? act: set f17
    process ? act: set o4
act: clear process

f12 ? o4 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: clear f12
    process ? act: clear o4
    process ? act: set f13
    process ? act: set o4
act: clear process

f12 ? o4 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: clear f12
    process ? act: clear o4
    process ? act: set f11
    process ? act: set o4
act: clear process

f12 ? o4 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: clear f12
    process ? act: clear o4
    process ? act: set f17
    process ? act: set o3
act: clear process

f12 ? o4 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: clear f12
    process ? act: clear o4
    process ? act: set f18
    process ? act: set o3
act: clear process


// f13

f13 ? o1 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: set GBLL_on
act: clear process

f13 ? o1 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: set GBLL_on
act: clear process

f13 ? o1 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: clear f13
    process ? act: clear o1
    process ? act: set f12
    process ? act: set o1
act: clear process

f13 ? o1 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: clear f13
    process ? act: clear o1
    process ? act: set f7
    process ? act: set o3
act: clear process

f13 ? o2 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: set GBLL_on
act: clear process

f13 ? o2 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: set GBLL_on
act: clear process

f13 ? o2 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: clear f13
    process ? act: clear o2
    process ? act: set f7
    process ? act: set o4
act: clear process

f13 ? o2 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: clear f13
    process ? act: clear o2
    process ? act: set f12
    process ? act: set o2
act: clear process

f13 ? o3 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: clear f13
    process ? act: clear o3
    process ? act: set f12
    process ? act: set o3
act: clear process

f13 ? o3 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: clear f13
    process ? act: clear o3
    process ? act: set f7
    process ? act: set o2
act: clear process

f13 ? o3 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: set GBLL_on
act: clear process

f13 ? o3 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: set GBLL_on
act: clear process

f13 ? o4 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: clear f13
    process ? act: clear o4
    process ? act: set f7
    process ? act: set o1
act: clear process

f13 ? o4 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: clear f13
    process ? act: clear o4
    process ? act: set f12
    process ? act: set o4
act: clear process

f13 ? o4 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: set GBLL_on
act: clear process

f13 ? o4 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: set GBLL_on
act: clear process


// f14

f14 ? o1 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: set GBLL_on
act: clear process

f14 ? o1 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: set GBLL_on
act: clear process

f14 ? o1 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: clear f14
    process ? act: clear o1
    process ? act: set f7
    process ? act: set o3
act: clear process

f14 ? o1 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: clear f14
    process ? act: clear o1
    process ? act: set f9
    process ? act: set o1
act: clear process

f14 ? o2 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: set GBLL_on
act: clear process

f14 ? o2 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: set GBLL_on
act: clear process

f14 ? o2 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: clear f14
    process ? act: clear o2
    process ? act: set f9
    process ? act: set o2
act: clear process

f14 ? o2 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: clear f14
    process ? act: clear o2
    process ? act: set f7
    process ? act: set o4
act: clear process

f14 ? o3 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: clear f14
    process ? act: clear o3
    process ? act: set f7
    process ? act: set o2
act: clear process

f14 ? o3 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: clear f14
    process ? act: clear o3
    process ? act: set f9
    process ? act: set o3
act: clear process

f14 ? o3 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: set GBLL_on
act: clear process

f14 ? o3 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: set GBLL_on
act: clear process

f14 ? o4 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: clear f14
    process ? act: clear o4
    process ? act: set f9
    process ? act: set o4
act: clear process

f14 ? o4 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: clear f14
    process ? act: clear o4
    process ? act: set f7
    process ? act: set o1
act: clear process

f14 ? o4 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: set GBLL_on
act: clear process

f14 ? o4 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: set GBLL_on
act: clear process


// f15

f15 ? o1 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: clear f15
    process ? act: clear o1
    process ? act: set f9
    process ? act: set o1
act: clear process

f15 ? o1 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: clear f15
    process ? act: clear o1
    process ? act: set f1
    process ? act: set o1
act: clear process

f15 ? o1 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: set GBLL_on
act: clear process

f15 ? o1 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: set GBLL_on
act: clear process

f15 ? o2 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: clear f15
    process ? act: clear o2
    process ? act: set f1
    process ? act: set o2
act: clear process

f15 ? o2 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: clear f15
    process ? act: clear o2
    process ? act: set f9
    process ? act: set o2
act: clear process

f15 ? o2 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: set GBLL_on
act: clear process

f15 ? o2 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: set GBLL_on
act: clear process

f15 ? o3 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: set GBLL_on
act: clear process

f15 ? o3 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: set GBLL_on
act: clear process

f15 ? o3 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: clear f15
    process ? act: clear o3
    process ? act: set f1
    process ? act: set o3
act: clear process

f15 ? o3 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: clear f15
    process ? act: clear o3
    process ? act: set f9
    process ? act: set o3
act: clear process

f15 ? o4 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: set GBLL_on
act: clear process

f15 ? o4 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: set GBLL_on
act: clear process

f15 ? o4 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: clear f15
    process ? act: clear o4
    process ? act: set f9
    process ? act: set o4
act: clear process

f15 ? o4 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: clear f15
    process ? act: clear o4
    process ? act: set f1
    process ? act: set o4
act: clear process


// f16

f16 ? o1 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: clear f16
    process ? act: clear o1
    process ? act: set f5
    process ? act: set o2
act: clear process

f16 ? o1 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: clear f16
    process ? act: clear o1
    process ? act: set f9
    process ? act: set o1
act: clear process

f16 ? o1 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: set GBLL_on
act: clear process

f16 ? o1 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: set GBLL_on
act: clear process

f16 ? o2 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: clear f16
    process ? act: clear o2
    process ? act: set f9
    process ? act: set o2
act: clear process

f16 ? o2 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: clear f16
    process ? act: clear o2
    process ? act: set f5
    process ? act: set o1
act: clear process

f16 ? o2 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: set GBLL_on
act: clear process

f16 ? o2 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: set GBLL_on
act: clear process

f16 ? o3 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: set GBLL_on
act: clear process

f16 ? o3 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: set GBLL_on
act: clear process

f16 ? o3 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: clear f16
    process ? act: clear o3
    process ? act: set f9
    process ? act: set o3
act: clear process

f16 ? o3 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: clear f16
    process ? act: clear o3
    process ? act: set f5
    process ? act: set o4
act: clear process

f16 ? o4 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: set GBLL_on
act: clear process

f16 ? o4 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: set GBLL_on
act: clear process

f16 ? o4 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: clear f16
    process ? act: clear o4
    process ? act: set f5
    process ? act: set o3
act: clear process

f16 ? o4 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: clear f16
    process ? act: clear o4
    process ? act: set f9
    process ? act: set o4
act: clear process


// f17

f17 ? o1 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: clear f17
    process ? act: clear o1
    process ? act: set f12
    process ? act: set o2
act: clear process

f17 ? o1 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: clear f17
    process ? act: clear o1
    process ? act: set f5
    process ? act: set o2
act: clear process

f17 ? o1 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: set GBLL_on
act: clear process

f17 ? o1 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: set GBLL_on
act: clear process

f17 ? o2 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: clear f17
    process ? act: clear o2
    process ? act: set f5
    process ? act: set o1
act: clear process

f17 ? o2 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: clear f17
    process ? act: clear o2
    process ? act: set f12
    process ? act: set o1
act: clear process

f17 ? o2 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: set GBLL_on
act: clear process

f17 ? o2 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: set GBLL_on
act: clear process

f17 ? o3 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: set GBLL_on
act: clear process

f17 ? o3 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: set GBLL_on
act: clear process

f17 ? o3 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: clear f17
    process ? act: clear o3
    process ? act: set f5
    process ? act: set o4
act: clear process

f17 ? o3 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: clear f17
    process ? act: clear o3
    process ? act: set f12
    process ? act: set o4
act: clear process

f17 ? o4 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: set GBLL_on
act: clear process

f17 ? o4 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: set GBLL_on
act: clear process

f17 ? o4 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: clear f17
    process ? act: clear o4
    process ? act: set f12
    process ? act: set o3
act: clear process

f17 ? o4 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: clear f17
    process ? act: clear o4
    process ? act: set f5
    process ? act: set o3
act: clear process


// f18

f18 ? o1 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: clear f18
    process ? act: clear o1
    process ? act: set f1
    process ? act: set o1
act: clear process

f18 ? o1 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: clear f18
    process ? act: clear o1
    process ? act: set f12
    process ? act: set o2
act: clear process

f18 ? o1 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: set GBLL_on
act: clear process

f18 ? o1 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: set GBLL_on
act: clear process

f18 ? o2 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: clear f18
    process ? act: clear o2
    process ? act: set f12
    process ? act: set o1
act: clear process

f18 ? o2 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: clear f18
    process ? act: clear o2
    process ? act: set f1
    process ? act: set o2
act: clear process

f18 ? o2 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: set GBLL_on
act: clear process

f18 ? o2 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: set GBLL_on
act: clear process

f18 ? o3 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: set GBLL_on
act: clear process

f18 ? o3 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: set GBLL_on
act: clear process

f18 ? o3 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: clear f18
    process ? act: clear o3
    process ? act: set f12
    process ? act: set o4
act: clear process

f18 ? o3 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: clear f18
    process ? act: clear o3
    process ? act: set f1
    process ? act: set o3
act: clear process

f18 ? o4 ? up_pressed ? act: set process
    process ? act: clear up_pressed
    process ? act: set GBLL_on
act: clear process

f18 ? o4 ? down_pressed ? act: set process
    process ? act: clear down_pressed
    process ? act: set GBLL_on
act: clear process

f18 ? o4 ? left_pressed ? act: set process
    process ? act: clear left_pressed
    process ? act: clear f18
    process ? act: clear o4
    process ? act: set f1
    process ? act: set o4
act: clear process

f18 ? o4 ? right_pressed ? act: set process
    process ? act: clear right_pressed
    process ? act: clear f18
    process ? act: clear o4
    process ? act: set f12
    process ? act: set o3
act: clear process


// o1 ? txt: o1
// o2 ? txt: o2
// o3 ? txt: o3
// o4 ? txt: o4

f1 ? o1 ? img: f1o1.tga
f1 ? o2 ? img: f1o2.tga
f1 ? o3 ? img: f1o3.tga
f1 ? o4 ? img: f1o4.tga
f2 ? o1 ? img: f2o1.tga
f2 ? o2 ? img: f2o2.tga
f2 ? o3 ? img: f2o3.tga
f2 ? o4 ? img: f2o4.tga
f3 ? o1 ? img: f3o1.tga
f3 ? o2 ? img: f3o2.tga
f3 ? o3 ? img: f3o3.tga
f3 ? o4 ? img: f3o4.tga
f4 ? o1 ? img: f4o1.tga
f4 ? o2 ? img: f4o2.tga
f4 ? o3 ? img: f4o3.tga
f4 ? o4 ? img: f4o4.tga
f5 ? o1 ? img: f5o1.tga
f5 ? o2 ? img: f5o2.tga
f5 ? o3 ? img: f5o3.tga
f5 ? o4 ? img: f5o4.tga
f6 ? o1 ? img: f6o1.tga
f6 ? o2 ? img: f6o2.tga
f6 ? o3 ? img: f6o3.tga
f6 ? o4 ? img: f6o4.tga
f7 ? o1 ? img: f7o1.tga
f7 ? o2 ? img: f7o2.tga
f7 ? o3 ? img: f7o3.tga
f7 ? o4 ? img: f7o4.tga
f8 ? o1 ? img: f8o1.tga
f8 ? o2 ? img: f8o2.tga
f8 ? o3 ? img: f8o3.tga
f8 ? o4 ? img: f8o4.tga
f9 ? o1 ? img: f9o1.tga
f9 ? o2 ? img: f9o2.tga
f9 ? o3 ? img: f9o3.tga
f9 ? o4 ? img: f9o4.tga
f10 ? o1 ? img: f10o1.tga
f10 ? o2 ? img: f10o2.tga
f10 ? o3 ? img: f10o3.tga
f10 ? o4 ? img: f10o4.tga
f11 ? o1 ? img: f11o1.tga
f11 ? o2 ? img: f11o2.tga
f11 ? o3 ? img: f11o3.tga
f11 ? o4 ? img: f11o4.tga
f12 ? o1 ? img: f12o1.tga
f12 ? o2 ? img: f12o2.tga
f12 ? o3 ? img: f12o3.tga
f12 ? o4 ? img: f12o4.tga
f13 ? o1 ? img: f13o1.tga
f13 ? o2 ? img: f13o2.tga
f13 ? o3 ? img: f13o3.tga
f13 ? o4 ? img: f13o4.tga
f14 ? o1 ? img: f14o1.tga
f14 ? o2 ? img: f14o2.tga
f14 ? o3 ? img: f14o3.tga
f14 ? o4 ? img: f14o4.tga
f15 ? o1 ? img: f15o1.tga
f15 ? o2 ? img: f15o2.tga
f15 ? o3 ? img: f15o3.tga
f15 ? o4 ? img: f15o4.tga
f16 ? o1 ? img: f16o1.tga
f16 ? o2 ? img: f16o2.tga
f16 ? o3 ? img: f16o3.tga
f16 ? o4 ? img: f16o4.tga
f17 ? o1 ? img: f17o1.tga
f17 ? o2 ? img: f17o2.tga
f17 ? o3 ? img: f17o3.tga
f17 ? o4 ? img: f17o4.tga
f18 ? o1 ? img: f18o1.tga
f18 ? o2 ? img: f18o2.tga
f18 ? o3 ? img: f18o3.tga
f18 ? o4 ? img: f18o4.tga

// Checklists
// Target

altitude_set ? use: Altitude
    act: cockpit_up

longitude_set ? use: Longitude
    act: cockpit_up

latitude_set ? use: Latitude
    act: cockpit_up

inclination_set ? use: Inclination
    act: cockpit_up

velocity_set ? use: Velocity
    act: cockpit_up

function_set ? use: Function
    act: cockpit_up

// Rendez-vous

unlock_set ? use: Unlock
    act: cockpit_up

orient_set ? use: Orient
    act: cockpit_up

lock_set ? use: Lock
    act: cockpit_up

burn_set ? use: Burn
    act: cockpit_up


not control_lock ?
    chr: roll_left
        obj_orient ?
            act: set orient_set
        orient_set ?
            act: set obj_lock
        act: set left_pressed
        act: cockpit_up

not control_lock ?
    chr: roll_right
        obj_orient ?
            act: set orient_set
        orient_set ?
            act: set obj_lock
        act: set right_pressed
        act: cockpit_up

not control_lock ?
    chr: up
        obj_orient ?
            act: set orient_set
        orient_set ?
            act: set obj_lock
        act: set up_pressed
        act: cockpit_up

not control_lock ?
    chr: down
        obj_orient ?
            act: set orient_set
        orient_set ?
            act: set obj_lock
        act: set down_pressed
        act: cockpit_up

not control_lock ?
    chr: left
        obj_orient ?
            act: set orient_set
        orient_set ?
            act: set obj_lock
        act: set roll_left_pressed
        act: cockpit_up

not control_lock ?
    chr: right
        obj_orient ?
            act: set orient_set
        orient_set ?
            act: set obj_lock
        act: set roll_right_pressed
        act: cockpit_up

// Lights

LCKL_on ?
    chr: LCKL
        act: clear nothing

AGSL_on ?
    chr: AGSL
        act: clear AGSL_on

GBLL_on ?
    chr: GBLL
        act: clear GBLL_on

obj_orient ?
    opt: [COMMS] Spiral constellation ?
        act: diag_006

opt: .                   v Main console v
act: cockpit_001