mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-04-09 01:16:04 +00:00
added support for keyboard keys a-z
This commit is contained in:
@@ -5,10 +5,17 @@ import java.awt.Toolkit;
|
||||
|
||||
import javax.swing.JFrame;
|
||||
|
||||
import com.limelight.input.KeyboardHandler;
|
||||
import com.limelight.nvstream.NvConnection;
|
||||
|
||||
public class StreamFrame extends JFrame {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public void build() {
|
||||
private KeyboardHandler keyboard;
|
||||
|
||||
public void build(NvConnection conn) {
|
||||
keyboard = new KeyboardHandler(conn);
|
||||
this.addKeyListener(keyboard);
|
||||
Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
|
||||
this.setSize(1280,720);
|
||||
//This might break if the screen res is too small...not sure though
|
||||
|
||||
Reference in New Issue
Block a user