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.
Java Source Code
/******************************************************************************* Copyright 2014 See AUTHORS file.
* //www.java2s.com
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License. ******************************************************************************/package com.sidereal.dolphinoes.architecture.core.input;
/** Class encapsulating an event to run when pressing, holding and releasing keys, buttons and fingers. An easy way to assign a specific key, button, finger to
* trigger an action is to use {@Link Input.InputAction}.
* <p>
* To listen to any actions to trigger an event( for uses such as key bindings), use {@link Input.InputAction#ANY_ACTION}
* <p>
* User must implement the {@link #run(TouchData)} method , getting access to individual finger press position, initial position, delta position.
*
* @author Claudiu Bele */publicabstractclass ActionEvent
{
/** Method to run whenever a user presses, holds or releases an action( mouse button, keyboard, touch ). If the user decides that the data was not handled or
* the purpose of the method has not been achieved due to some external reasons, a false must be returned, whereas if the wanted functionality has been
* achieved, return true.
* <p>
* This is done in order for events to be potentially handled in the next input processor found in the Input Multiplexer.
*
* @param inputData
* @return whether data was handled as intended */publicboolean run(ActionData inputData)
{
return false;
}
}