mirror of
https://github.com/scratchfoundation/Gestouch.git
synced 2025-03-14 06:29:49 -04:00
43 lines
No EOL
795 B
ActionScript
43 lines
No EOL
795 B
ActionScript
package org.gestouch.input
|
|
{
|
|
import org.gestouch.core.IInputAdapter;
|
|
import org.gestouch.core.ITouchesManager;
|
|
|
|
|
|
/**
|
|
* @author Pavel fljot
|
|
*/
|
|
public class AbstractInputAdapter implements IInputAdapter
|
|
{
|
|
protected var _touchesManager:ITouchesManager;
|
|
|
|
|
|
public function AbstractInputAdapter()
|
|
{
|
|
if (Object(this).constructor == AbstractInputAdapter)
|
|
{
|
|
throw new Error("This is abstract class and should not be directly instantiated.");
|
|
}
|
|
}
|
|
|
|
|
|
public function set touchesManager(value:ITouchesManager):void
|
|
{
|
|
_touchesManager = value;
|
|
}
|
|
|
|
|
|
[Abstract]
|
|
public function init():void
|
|
{
|
|
throw new Error("This is abstract method.");
|
|
}
|
|
|
|
|
|
[Abstract]
|
|
public function dispose():void
|
|
{
|
|
throw new Error("This is abstract method.");
|
|
}
|
|
}
|
|
} |