Back to project page DolphinOES.
The source code is released under:
Apache License
If you think the Android project DolphinOES listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.sidereal.dolphinoes.architecture.core.input; //ww w .jav a 2 s . c o m import com.sidereal.dolphinoes.architecture.core.input.Input.InputAction; import com.sidereal.dolphinoes.architecture.core.input.Input.InputEventType; /** Wrapper for {@link TouchEvent}, containing all relevant data for running the event * at the proper times. Created internally in {@link Input#addTouchEvent(String, int, TouchEvent, InputEventType)}. * * @author Claudiu Bele * */ public class TouchEventWrapper { public int code; public TouchEvent event; public InputEventType inputType; /** Event to run when a particular finger is pressed, held, or released * * @param code the {@link InputAction} value tied to a finger. * @param event The event to run when something ( based on inputType) happends to the given code * @param inputType The type of action to run the application on. {@link InputEventType#Up}, {@link InputEventType#Down} * or {@link InputEventType#Hold} are supported. */ public TouchEventWrapper(int code, TouchEvent event, InputEventType inputType) { this.code = code; this.event = event; this.inputType = inputType; } }