/******************************************************************************* * Copyright (c) 2016 Alex Shapiro - github.com/shpralex * This program and the accompanying materials * are made available under the terms of the The MIT License (MIT) * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. *******************************************************************************/ package com.sproutlife.panel.gamepanel.handler; import com.sproutlife.panel.PanelController; import com.sproutlife.panel.gamepanel.handler.HandlerConsts.RequiredKey; public class DefaultHandlerSet extends HandlerSet { private PanelController panelController; public DefaultHandlerSet(PanelController panelController) { super(panelController); this.panelController = panelController; addHandlers(); } public ScrollDragHandler createScrollDragHandler(RequiredKey requiredKey) { return new ScrollDragHandler(panelController, requiredKey); } @Override public void addHandlers() { // Background Drag Handlers addBackgroundDragHandler(createScrollDragHandler(RequiredKey.None)); // Mouse Wheel Handlers //addMouseWheelHandler(new TestMouseWheelHandler(panelController, RequiredKey.Any)); } }