PageRenderTime 22ms CodeModel.GetById 12ms app.highlight 6ms RepoModel.GetById 3ms app.codeStats 0ms

/src/org/mt4j/input/inputData/MTMouseInputEvt.java

http://mt4j.googlecode.com/
Java | 54 lines | 17 code | 7 blank | 30 comment | 0 complexity | 96b7a86a72936f13d39b2dd5a885eb21 MD5 | raw file
 1package org.mt4j.input.inputData;
 2
 3import org.mt4j.components.interfaces.IMTComponent3D;
 4import org.mt4j.input.inputSources.AbstractInputSource;
 5
 6/**
 7 * The Class MTMouseInputEvt.
 8 */
 9public class MTMouseInputEvt extends MTFingerInputEvt {
10
11	/** The mouse button. */
12	private int mouseModifiers;
13
14	/**
15	 * Instantiates a new mT mouse input evt.
16	 *
17	 * @param source the source
18	 * @param target the target
19	 * @param mouseModifiers the mouse modifiers
20	 * @param positionX the position x
21	 * @param positionY the position y
22	 * @param id the id
23	 * @param m the m
24	 */
25	public MTMouseInputEvt(AbstractInputSource source, IMTComponent3D target, int mouseModifiers, float positionX, float positionY, int id, InputCursor m) {
26		super(source, target, positionX, positionY, id, m);
27		this.mouseModifiers = mouseModifiers;
28	}
29
30	/**
31	 * Instantiates a new mT mouse input evt.
32	 *
33	 * @param source the source
34	 * @param mouseModifiers the mouse modifiers
35	 * @param positionX the position x
36	 * @param positionY the position y
37	 * @param id the id
38	 * @param m the m
39	 */
40	public MTMouseInputEvt(AbstractInputSource source, int mouseModifiers, float positionX, float positionY, int id, InputCursor m) {
41		super(source, positionX, positionY, id, m);
42		this.mouseModifiers = mouseModifiers;
43	}
44	
45	/**
46	 * Gets the modifiers.
47	 *
48	 * @return the modifiers
49	 */
50	public int getModifiers(){
51		return this.mouseModifiers;
52	}
53
54}