/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

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