Beispiel #1
0
    private void OnKeyHold(GameInput.KeyEvent keyEvent)
    {
        mDeltaPressTime += Time.deltaTime;

        if (mDeltaPressTime < 0.1f)
        {
            return;
        }
        mDeltaPressTime = 0f;

        switch (keyEvent)
        {
        case GameInput.KeyEvent.DpadUp:
            MovePointer(-1, 0);
            break;

        case GameInput.KeyEvent.DpadDown:
            MovePointer(1, 0);
            break;

        case GameInput.KeyEvent.DpadLeft:
            MovePointer(0, -1);
            break;

        case GameInput.KeyEvent.DpadRight:
            MovePointer(0, 1);
            break;
        }

        mCells[mPointerIndex.x, mPointerIndex.y].OnHover(true);
    }
Beispiel #2
0
    private void OnKeyDown(GameInput.KeyEvent keyEvent)
    {
        switch (keyEvent)
        {
        //case GameInput.KeyEvent.DpadUp:
        //    MovePointer(-1, 0);
        //    break;
        //case GameInput.KeyEvent.DpadDown:
        //    MovePointer(1, 0);
        //    break;
        //case GameInput.KeyEvent.DpadLeft:
        //    MovePointer(0, -1);
        //    break;
        //case GameInput.KeyEvent.DpadRight:
        //    MovePointer(0, 1);
        //    break;
        case GameInput.KeyEvent.ButtonA:
            SelectCell(mPointerIndex);
            break;
        }

        //mCells[mPointerIndex.x, mPointerIndex.y].OnHover(true);
    }
Beispiel #3
0
 private void OnKeyUp(GameInput.KeyEvent keyEvent)
 {
 }