@@ -19,9 +19,6 @@ extern inline fixedpt sensitivity(fixedpt input_speed, fixedpt param_sens_mult,
19
19
fixedpt param_accel , fixedpt param_offset ,
20
20
fixedpt param_output_cap ) {
21
21
22
- // printk("input speed %s, with interval %s", fixedpt_cstr(speed_in, 5),
23
- // fixedpt_cstr(polling_interval, 5));
24
-
25
22
input_speed = fixedpt_sub (input_speed , param_offset );
26
23
27
24
fixedpt sens = FIXEDPT_ONE ;
@@ -54,24 +51,14 @@ static inline AccelResult f_accelerate(s8 x, s8 y, u32 polling_interval,
54
51
fixedpt dx = fixedpt_fromint (x );
55
52
fixedpt dy = fixedpt_fromint (y );
56
53
57
- // printk(KERN_INFO "[MOUSE_MOVE] (%s, %s)", fixedpt_cstr(dx, 5),
58
- // fixedpt_cstr(dy, 5));
59
-
60
54
fixedpt distance =
61
55
fixedpt_sqrt (fixedpt_add (fixedpt_mul (dx , dx ), fixedpt_mul (dy , dy )));
62
56
63
- // printk("distance %s", fixedpt_cstr(distance, 5));
64
-
65
57
fixedpt speed_in = fixedpt_div (distance , fixedpt_fromint (polling_interval ));
66
58
67
- // printk("input speed %s, with interval %s", fixedpt_cstr(speed_in, 5),
68
- // fixedpt_cstr(fixedpt_fromint(polling_interval), 5));
69
-
70
59
fixedpt sens = sensitivity (speed_in , param_sens_mult , param_accel ,
71
60
param_offset , param_output_cap );
72
61
73
- // printk("accel_factor %s", fixedpt_cstr(accel_factor, 5));
74
-
75
62
fixedpt dx_out = fixedpt_mul (dx , sens );
76
63
fixedpt dy_out = fixedpt_mul (dy , sens );
77
64
@@ -84,10 +71,5 @@ static inline AccelResult f_accelerate(s8 x, s8 y, u32 polling_interval,
84
71
carry_x = fixedpt_sub (dx_out , fixedpt_fromint (result .x ));
85
72
carry_y = fixedpt_sub (dy_out , fixedpt_fromint (result .y ));
86
73
87
- // printk(KERN_INFO "[MOUSE_MOVE_ACCEL] (%d, %d)", result.x, result.y);
88
-
89
- // printk(KERN_INFO "[MOUSE_MOVE] carry (%s, %s)", fixedpt_cstr(carry_x, 5),
90
- // fixedpt_cstr(carry_y, 5));
91
-
92
74
return result ;
93
75
}
0 commit comments