@@ -64,7 +64,6 @@ pub struct InputManager {
64
64
keys_toggled : HashSet < KeyCode > ,
65
65
last_key : KeyCode ,
66
66
last_char : Option < char > ,
67
- last_text_control : Option < TextControlCode > ,
68
67
last_click : Option < ClickEventData > ,
69
68
70
69
/// A map from gamepad buttons to key codes.
@@ -78,7 +77,6 @@ impl InputManager {
78
77
keys_toggled : HashSet :: new ( ) ,
79
78
last_key : KeyCode :: UNKNOWN ,
80
79
last_char : None ,
81
- last_text_control : None ,
82
80
last_click : None ,
83
81
gamepad_button_mapping,
84
82
}
@@ -178,10 +176,6 @@ impl InputManager {
178
176
InputEvent :: KeyUp { key_code, key_char } => {
179
177
self . last_char = key_char;
180
178
self . remove_key ( key_code) ;
181
- self . last_text_control = None ;
182
- }
183
- InputEvent :: TextControl { code } => {
184
- self . last_text_control = Some ( code) ;
185
179
}
186
180
InputEvent :: MouseDown { button, .. } => {
187
181
self . toggle_key ( button. into ( ) ) ;
@@ -228,10 +222,6 @@ impl InputManager {
228
222
self . last_char
229
223
}
230
224
231
- pub fn last_text_control ( & self ) -> Option < TextControlCode > {
232
- self . last_text_control
233
- }
234
-
235
225
pub fn last_click_index ( & self ) -> usize {
236
226
self . last_click
237
227
. as_ref ( )
0 commit comments