Merge "Fix native input dispatch in the emulator." into gingerbread