Fix style violations

This commit is contained in:
Luiz Henrique Laurini 2021-05-01 10:58:32 -03:00 committed by Simon Chan
parent ecf206665e
commit 80887ed01c
No known key found for this signature in database
GPG key ID: A8B69F750B9BCEDD
2 changed files with 2 additions and 13 deletions

View file

@ -1,14 +1,5 @@
package com.genymobile.scrcpy;
import com.sun.jna.Library;
import com.sun.jna.Native;
import com.sun.jna.Platform;
import com.sun.jna.Pointer;
import com.sun.jna.Structure;
import java.util.Arrays;
import java.util.List;
public final class GameController extends UinputDevice {
private static final short XBOX_BTN_A = BTN_A;
private static final short XBOX_BTN_B = BTN_B;

View file

@ -181,14 +181,12 @@ public abstract class UinputDevice {
throw new RuntimeException("Couldn't open uinput device.");
}
if (hasKeys())
{
if (hasKeys()) {
libC.ioctl(fd, UI_SET_EVBIT, EV_KEY);
setupKeys();
}
if (hasAbs())
{
if (hasAbs()) {
libC.ioctl(fd, UI_SET_EVBIT, EV_ABS);
setupAbs();
}