Description

A licensee reported an issue where mouse events are not able to be used as touch events on Android apps. This was specifically reported on and tested on Chromebooks. After working with Chris Babcock, it was discovered that this was able to be worked around by changing the following If condition in LaunchAndroid.cpp to be false and skip the following block of code:

 if ((EventSource & AINPUT_SOURCE_MOUSE) == AINPUT_SOURCE_MOUSE) 

This is not a valid solution for the issue however and this report has been entered for a solid fix.

Regression?: No
This did not happen in 4.19.2, but does occur in 4.20 and thus is not a regression at this time.

Steps to Reproduce
  1. Create a project from the Top Down template.
  2. Enable "Use Mouse for Touch" in Project Settings > Engine > Input > Mouse Properties.
  3. Enable "Package game data inside .apk?" in Project Settings > Platforms > Android > APK Packaging.
  4. Package the project for Android.
  5. Transfer the APK to a Chromebook and install it.
  6. Start the application.
  7. Attempt to use the mouse to click in the app to move the character.
    Result: The mouse events do not work and the character does not move.
    Expected: The mouse events are able to move the character as they are treated as a touch event.

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-71709 in the post.

3
Login to Vote

Won't Fix
ComponentUE - Platform - Mobile
Affects Versions4.204.214.224.23
CreatedMar 18, 2019
ResolvedAug 27, 2021
UpdatedAug 27, 2021