Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
epoxy
GitHub Repository: epoxy/proj11
Path: blob/master/SLICK_HOME/src/org/newdawn/slick/ControlledInputReciever.java
1456 views
1
package org.newdawn.slick;
2
3
/**
4
* Description of any class capable of recieving and controlling it's own
5
* reception of input
6
*
7
* You'll shouldn't really need to implement this one for your self, use one of the sub-interfaces:
8
*
9
* {@link InputListener}
10
* {@link MouseListener}
11
* {@link KeyListener}
12
* {@link ControllerListener}
13
*
14
* @author kevin
15
*/
16
public interface ControlledInputReciever {
17
18
/**
19
* Set the input that events are being sent from
20
*
21
* @param input The input instance sending events
22
*/
23
public abstract void setInput(Input input);
24
25
/**
26
* Check if this input listener is accepting input
27
*
28
* @return True if the input listener should recieve events
29
*/
30
public abstract boolean isAcceptingInput();
31
32
/**
33
* Notification that all input events have been sent for this frame
34
*/
35
public abstract void inputEnded();
36
37
/**
38
* Notification that input is about to be processed
39
*/
40
public abstract void inputStarted();
41
42
}
43