view flappyufo/src/flappyufo/Actions.java @ 0:2787f5e749ae

INIT
author prymula <prymula76@outlook.com>
date Thu, 21 Sep 2023 22:33:57 +0200
parents
children
line wrap: on
line source

/* 
 * FlappyUfo - gra dla klikaczy
 * Przemyslaw R. Pietraszczyk
 * rozpoczecie: 01-IX-2021
 * licencja: GPL
 * edytor: Geany
 */

package flappyufo;

import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;

public class Actions implements KeyListener {
	char key = '?';
	
	public void keyPressed(KeyEvent e) {
		key = e.getKeyChar();
	}
	public void keyTyped(KeyEvent e){}
    
	public void keyReleased(KeyEvent e){
		key = '?';
	}
	
	public char getKey(){
		return (key);
	}
}