using System; using System.Collections.Generic; using UnityEngine; namespace CHN { public class InputHandler { public Action updateLoop; public Dictionary getKeyActions; public Dictionary downKeyActions; public Dictionary upKeyActions; public Dictionary> shortCutActions; public InputHandler( Dictionary getKeyActions = null, Dictionary downKeyActions = null, Dictionary upKeyActions = null, Dictionary> shortCutActions = null, Action updateLoop = null) { if (getKeyActions == null) getKeyActions = new(); this.getKeyActions = getKeyActions; if (downKeyActions == null) downKeyActions = new(); this.downKeyActions = downKeyActions; if(upKeyActions == null) upKeyActions = new(); this.upKeyActions = upKeyActions; if(shortCutActions == null) shortCutActions = new(); this.shortCutActions = shortCutActions; this.updateLoop=updateLoop; } } }