added support for keyboard keys a-z

This commit is contained in:
Diego Waxemberg
2013-12-07 21:22:52 -05:00
parent 6e17ab3c2b
commit f1984f08b7
6 changed files with 48 additions and 13 deletions

View File

@@ -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