Skip to content

Commit

Permalink
Add workaround for Daggerfall Unity
Browse files Browse the repository at this point in the history
  • Loading branch information
brunodev85 committed Mar 28, 2024
1 parent 0801cf6 commit 8f79ebc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/src/main/java/com/winlator/core/Workarounds.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@ public abstract class Workarounds {
// Workaround for applications that don't work mouse/keyboard
public static void onMapWindow(final WinHandler winHandler, Window window) {
final String className = window.getClassName();
if (className.equals("twfc.exe")) {
if (className.equals("twfc.exe") ||
className.equals("daggerfallunity.exe")) {
final boolean reverse = className.equals("twfc.exe");
(new Timer()).schedule(new TimerTask() {
@Override
public void run() {
winHandler.bringToFront(className, true);
winHandler.bringToFront(className, reverse);
}
}, 500);
}
Expand Down

1 comment on commit 8f79ebc

@AshthorneGaming
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When using an external keyboard, the Enter and Escape keys don't register as an input.

Please sign in to comment.