input: Rename discrete => v120
Browse files at this commitfbe021fbdfb3623bf613e71ddf6b1cf220c1b420Parent: db49deb1 changed file +6 -6
- src/input.rs +6 -6
src/input.rsmodified+6 -6
| @@ -1084,24 +1084,24 @@ impl State { | ||
| 1084 | 1084 | let vertical_amount = event |
| 1085 | 1085 | .amount(Axis::Vertical) |
| 1086 | 1086 | .unwrap_or_else(|| event.amount_v120(Axis::Vertical).unwrap_or(0.0) * 3.0 / 120.); |
| 1087 | - let horizontal_amount_discrete = event.amount_v120(Axis::Horizontal); | |
| 1088 | - let vertical_amount_discrete = event.amount_v120(Axis::Vertical); | |
| 1087 | + let horizontal_amount_v120 = event.amount_v120(Axis::Horizontal); | |
| 1088 | + let vertical_amount_v120 = event.amount_v120(Axis::Vertical); | |
| 1089 | 1089 | |
| 1090 | 1090 | let mut frame = AxisFrame::new(event.time_msec()).source(source); |
| 1091 | 1091 | if horizontal_amount != 0.0 { |
| 1092 | 1092 | frame = frame |
| 1093 | 1093 | .relative_direction(Axis::Horizontal, event.relative_direction(Axis::Horizontal)); |
| 1094 | 1094 | frame = frame.value(Axis::Horizontal, horizontal_amount); |
| 1095 | - if let Some(discrete) = horizontal_amount_discrete { | |
| 1096 | - frame = frame.v120(Axis::Horizontal, discrete as i32); | |
| 1095 | + if let Some(v120) = horizontal_amount_v120 { | |
| 1096 | + frame = frame.v120(Axis::Horizontal, v120 as i32); | |
| 1097 | 1097 | } |
| 1098 | 1098 | } |
| 1099 | 1099 | if vertical_amount != 0.0 { |
| 1100 | 1100 | frame = |
| 1101 | 1101 | frame.relative_direction(Axis::Vertical, event.relative_direction(Axis::Vertical)); |
| 1102 | 1102 | frame = frame.value(Axis::Vertical, vertical_amount); |
| 1103 | - if let Some(discrete) = vertical_amount_discrete { | |
| 1104 | - frame = frame.v120(Axis::Vertical, discrete as i32); | |
| 1103 | + if let Some(v120) = vertical_amount_v120 { | |
| 1104 | + frame = frame.v120(Axis::Vertical, v120 as i32); | |
| 1105 | 1105 | } |
| 1106 | 1106 | } |
| 1107 | 1107 |