public void run(){
		running=true;
		System.out.println("is runnning...");
		HashMap<String,Float> be;
		while(running){
			if((be = getButtonEvents()).size() > 0)
				for(Map.Entry<String, Float> e : be.entrySet()){
					buttons.put(e.getKey(), e.getValue());
					for(int i=0;i<listeners.size();i++) listeners.get(i).playerEvent(playernumber, e.getKey(), e.getValue());
				}
			
			try {
				Thread.sleep((int)(1000/60));
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}

	}