mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-02-16 02:20:42 +00:00
Assigned mapping parameter to instance variable, preventing NullPointerException during parseEvent
This commit is contained in:
@@ -36,6 +36,7 @@ public class EvdevHandler implements Runnable {
|
||||
|
||||
public EvdevHandler(NvConnection conn, String device, GamepadMapping mapping) throws FileNotFoundException, IOException {
|
||||
this.conn = conn;
|
||||
this.mapping = mapping;
|
||||
File file = new File(device);
|
||||
if (!file.exists())
|
||||
throw new FileNotFoundException("File " + device + " not found");
|
||||
|
||||
Reference in New Issue
Block a user