mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-04-22 12:35:01 +00:00
Fix style violations
This commit is contained in:
parent
ecf206665e
commit
80887ed01c
2 changed files with 2 additions and 13 deletions
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue