Subversion Repositories Projects

Rev

Rev 485 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 485 Rev 505
Line 46... Line 46...
46
 
46
 
47
    CFG_FLOAT("nick_mul", 1.0,CFGF_NONE),
47
    CFG_FLOAT("nick_mul", 1.0,CFGF_NONE),
48
    CFG_FLOAT("roll_mul", 1.0,CFGF_NONE),
48
    CFG_FLOAT("roll_mul", 1.0,CFGF_NONE),
49
    CFG_FLOAT("gier_mul", 1.0,CFGF_NONE),
49
    CFG_FLOAT("gier_mul", 1.0,CFGF_NONE),
-
 
50
    CFG_FLOAT("gas_mul", 1.0,CFGF_NONE),
Line 50... Line 51...
50
    CFG_FLOAT("gas_mul", 1.0,CFGF_NONE),
51
    CFG_FLOAT("alt_mul", 1.0,CFGF_NONE),
51
 
52
 
52
    CFG_FLOAT("nick_add", 0,CFGF_NONE),
53
    CFG_FLOAT("nick_add", 0,CFGF_NONE),
53
    CFG_FLOAT("roll_add", 0,CFGF_NONE),
54
    CFG_FLOAT("roll_add", 0,CFGF_NONE),
Line 54... Line 55...
54
    CFG_FLOAT("gier_add", 0,CFGF_NONE),
55
    CFG_FLOAT("gier_add", 0,CFGF_NONE),
55
    CFG_FLOAT("gas_add", 0,CFGF_NONE),
56
    CFG_FLOAT("gas_add", 0,CFGF_NONE),
56
   
57
   
57
    CFG_INT("rel_axis_nick",  -1,CFGF_NONE),
58
    CFG_INT("rel_axis_nick",  -1,CFGF_NONE),
-
 
59
    CFG_INT("rel_axis_roll",  -1,CFGF_NONE),
Line 58... Line 60...
58
    CFG_INT("rel_axis_roll",  -1,CFGF_NONE),
60
    CFG_INT("rel_axis_gier",  -1,CFGF_NONE),
59
    CFG_INT("rel_axis_gier",  -1,CFGF_NONE),
61
    CFG_INT("rel_axis_gas", -1,CFGF_NONE),
60
    CFG_INT("rel_axis_gas", -1,CFGF_NONE),
62
    CFG_INT("rel_axis_alt", -1,CFGF_NONE),
61
 
63
 
Line -... Line 64...
-
 
64
    CFG_INT("nick_up_btn",  -1,CFGF_NONE),
-
 
65
    CFG_INT("nick_down_btn",  -1,CFGF_NONE),
-
 
66
    CFG_INT("roll_left_btn",  -1,CFGF_NONE),
62
    CFG_INT("nick_up_btn",  -1,CFGF_NONE),
67
    CFG_INT("roll_right_btn", -1,CFGF_NONE),
63
    CFG_INT("nick_down_btn",  -1,CFGF_NONE),
68
 
Line 64... Line 69...
64
    CFG_INT("roll_left_btn",  -1,CFGF_NONE),
69
 
65
    CFG_INT("roll_right_btn", -1,CFGF_NONE),
70
    CFG_INT("engine_switch_btn", -1,CFGF_NONE),
Line 133... Line 138...
133
           
138
           
134
            inputs[act_input].nick_mul=cfg_getfloat(input_sect,"nick_mul");
139
            inputs[act_input].nick_mul=cfg_getfloat(input_sect,"nick_mul");
135
            inputs[act_input].roll_mul=cfg_getfloat(input_sect,"roll_mul");
140
            inputs[act_input].roll_mul=cfg_getfloat(input_sect,"roll_mul");
136
            inputs[act_input].gier_mul=cfg_getfloat(input_sect,"gier_mul");
141
            inputs[act_input].gier_mul=cfg_getfloat(input_sect,"gier_mul");
-
 
142
            inputs[act_input].gas_mul=cfg_getfloat(input_sect,"gas_mul");
Line 137... Line 143...
137
            inputs[act_input].gas_mul=cfg_getfloat(input_sect,"gas_mul");
143
            inputs[act_input].alt_mul=cfg_getfloat(input_sect,"alt_mul");
138
           
144
           
139
            inputs[act_input].nick_add=cfg_getfloat(input_sect,"nick_add");
145
            inputs[act_input].nick_add=cfg_getfloat(input_sect,"nick_add");
140
            inputs[act_input].roll_add=cfg_getfloat(input_sect,"roll_add");
146
            inputs[act_input].roll_add=cfg_getfloat(input_sect,"roll_add");
Line 141... Line 147...
141
            inputs[act_input].gier_add=cfg_getfloat(input_sect,"gier_add");
147
            inputs[act_input].gier_add=cfg_getfloat(input_sect,"gier_add");
-
 
148
            inputs[act_input].gas_add=cfg_getfloat(input_sect,"gas_add");
-
 
149
 
142
            inputs[act_input].gas_add=cfg_getfloat(input_sect,"gas_add");
150
 
Line 143... Line 151...
143
 
151
            inputs[act_input].nick_up_btn=cfg_getint(input_sect,"nick_up_btn");
144
 
152
            printf("nick_up_btn %d\n" ,cfg_getint(input_sect,"nick_up_btn"));
Line 153... Line 161...
153
            inputs[act_input].rel_axis_roll=cfg_getint(input_sect,"rel_axis_roll");
161
            inputs[act_input].rel_axis_roll=cfg_getint(input_sect,"rel_axis_roll");
Line 154... Line 162...
154
 
162
 
155
            inputs[act_input].rel_axis_gier=cfg_getint(input_sect,"rel_axis_gier");
163
            inputs[act_input].rel_axis_gier=cfg_getint(input_sect,"rel_axis_gier");
Line -... Line 164...
-
 
164
            inputs[act_input].rel_axis_gas=cfg_getint(input_sect,"rel_axis_gas");
-
 
165
 
-
 
166
            inputs[act_input].rel_axis_alt=cfg_getint(input_sect,"rel_axis_alt");
-
 
167
 
Line 156... Line 168...
156
            inputs[act_input].rel_axis_gas=cfg_getint(input_sect,"rel_axis_gas");
168
            inputs[act_input].engine_switch_btn=cfg_getint(input_sect,"engine_switch_btn");
157
 
169