summaryrefslogtreecommitdiffstats
path: root/friendfinder/vkbd/vkbd-shift.edc
blob: c05f618b2818ee1da895be2c67ae0e080a5b04e8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
part {
            name: "key-bg-shift";
            type: RECT;
            pointer_mode: NOGRAB;
            description {
               state: "default" 0.0;
               min: 32 32;
               max: 32 32;
               rel1 {
                  relative: 0.0 0.0;
                  offset: (44) (THIRD_ROW + 27);
               }
               rel2 {
                  relative: 0.0 0.0;
                  offset: (44) (THIRD_ROW + 27);
               }
               color: 0 0 0 0;
            }
         }
         part {
            name: "key-img-shift";
            type: IMAGE;
            mouse_events: 0;
            description {
               state: "default" 0.0;
               min: 87 54;
               max: 87 54;
               rel1 {
                  relative: 0.0 0.0;
                  offset: (44) (THIRD_ROW + 27);
               }
               rel2 {
                  relative: 0.0 0.0;
                  offset: (44) (THIRD_ROW + 27);
               }
               image {
                  normal: "key-special.png";
                  border: 9 9 9 9;
               }
            }
            description {
               state: "down" 0.0;
               inherit: "default" 0.0;
               image {
                  normal: "key-special-selected.png";
                  border: 9 9 9 9;
               }
            }
         }
         part {
           name: "key-lbl-shift";
           type: IMAGE;
           mouse_events: 0;
           description {
              state: "default" 0.0;
              max: 32 32;
              min: 32 32;
              rel1 {
                 to: "key-bg-shift";
                 relative: 0.5 0.5;
              }
              rel2 {
                 to: "key-bg-shift";
                 relative: 0.5 0.5;
              }
              image.normal: "shift.png";
            }
            description {
               state: "down" 0.0;
               inherit: "default" 0.0;
               image.normal: "shift-selected.png";
            }
         }
         programs {
            program {
               name: "key-down-shift";
               signal: "mouse,clicked,1";
               source: "key-bg-shift";
               action: SIGNAL_EMIT "key_down" "shift";
            }
            program {
               name: "key-down-shift-enter";
               signal: "press_shift";
               action: STATE_SET "down" 0.0;
               transition: LINEAR 0.1;
               target: "key-img-shift";
               target: "key-lbl-shift";
            }
            program {
               name: "key-down-shift-revert";
               signal: "release_shift";
               action: STATE_SET "default" 0.0;
               transition: LINEAR 0.1;
               target: "key-img-shift";
               target: "key-lbl-shift";
            }
         }