34 #ifndef BINDS_H |
34 #ifndef BINDS_H |
35 #define BINDS_H |
35 #define BINDS_H |
36 |
36 |
37 #include <QtGlobal> |
37 #include <QtGlobal> |
38 |
38 |
39 #define BINDS_NUMBER 9 |
39 #define BINDS_NUMBER 18 |
40 |
40 |
41 struct BindAction |
41 struct BindAction |
42 { |
42 { |
43 QString action; |
43 QString action; |
44 QString strbind; |
44 QString strbind; |
45 QString name; |
45 QString name; |
|
46 bool chwidget; |
46 }; |
47 }; |
47 |
48 |
48 const BindAction cbinds[BINDS_NUMBER] = |
49 const BindAction cbinds[BINDS_NUMBER] = |
49 { |
50 { |
50 {"+up", "up", QT_TR_NOOP("up")}, |
51 {"+up", "up", QT_TR_NOOP("up"), false}, |
51 {"+left", "left", QT_TR_NOOP("left")}, |
52 {"+left", "left", QT_TR_NOOP("left"), false}, |
52 {"+right", "right", QT_TR_NOOP("right")}, |
53 {"+right", "right", QT_TR_NOOP("right"), false}, |
53 {"+down", "down", QT_TR_NOOP("down")}, |
54 {"+down", "down", QT_TR_NOOP("down"), false}, |
54 {"ljump", "return", QT_TR_NOOP("jump")}, |
55 {"ljump", "return", QT_TR_NOOP("jump"), false}, |
55 {"hjump", "backspace", QT_TR_NOOP("jump")}, |
56 {"hjump", "backspace", QT_TR_NOOP("jump"), false}, |
56 {"+attack", "space", QT_TR_NOOP("attack")}, |
57 {"+attack", "space", QT_TR_NOOP("attack"), false}, |
57 {"switch", "tab", QT_TR_NOOP("switch")}, |
58 {"switch", "tab", QT_TR_NOOP("switch"), true}, |
58 {"quit", "F10", QT_TR_NOOP("quit")} |
59 {"slot 1", "f1", QT_TR_NOOP("slot 1"), false}, |
|
60 {"slot 2", "f2", QT_TR_NOOP("slot 2"), false}, |
|
61 {"slot 3", "f3", QT_TR_NOOP("slot 3"), false}, |
|
62 {"slot 4", "f4", QT_TR_NOOP("slot 4"), false}, |
|
63 {"slot 5", "f5", QT_TR_NOOP("slot 5"), false}, |
|
64 {"slot 6", "f6", QT_TR_NOOP("slot 6"), false}, |
|
65 {"slot 7", "f7", QT_TR_NOOP("slot 7"), false}, |
|
66 {"slot 8", "f8", QT_TR_NOOP("slot 8"), true}, |
|
67 {"capture", "f11", QT_TR_NOOP("capture"), false}, |
|
68 {"quit", "f10", QT_TR_NOOP("quit"), false} |
59 }; |
69 }; |
60 |
70 |
61 #endif // BINDS_H |
71 #endif // BINDS_H |