_xiaofang/xiaofang/Assets/Bitsplash/Modular Date Picker/Base/Script/DatePickerStandardInput.cs
2024-11-29 16:19:12 +08:00

25 lines
828 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;
namespace Bitsplash.DatePicker
{
public class DatePickerStandardInput : DatePickerInput
{
public override MultipleSelectionInputValue MultipleSelectionValue
{
get
{
if (Input.GetKey(KeyCode.LeftControl) || Input.GetKey(KeyCode.RightControl) || Input.GetKey(KeyCode.RightCommand) || Input.GetKey(KeyCode.LeftCommand))
return MultipleSelectionInputValue.Append;
if (Input.GetKey(KeyCode.LeftShift) || Input.GetKey(KeyCode.RightShift))
return MultipleSelectionInputValue.Append;
return MultipleSelectionInputValue.Singular;
}
}
}
}