Handle multi-touch events from glutin

This commit is contained in:
Matt Brubeck 2015-10-22 16:15:26 -07:00
parent 5c11c88e92
commit ef93650db9
7 changed files with 227 additions and 102 deletions

View file

@ -272,12 +272,6 @@ impl DebugOptions {
pub fn new(debug_string: &str) -> Result<DebugOptions, &str> {
let mut debug_options = DebugOptions::default();
// FIXME: Glutin currently converts touch input to mouse events on Android.
// Convert it back to touch events.
if cfg!(target_os = "android") {
debug_options.convert_mouse_to_touch = true;
}
for option in debug_string.split(',') {
match option {
"help" => debug_options.help = true,