DatePickerStandardInput.cs 852 B

123456789101112131415161718192021222324
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using UnityEngine;
  7. namespace Bitsplash.DatePicker
  8. {
  9. public class DatePickerStandardInput : DatePickerInput
  10. {
  11. public override MultipleSelectionInputValue MultipleSelectionValue
  12. {
  13. get
  14. {
  15. if (Input.GetKey(KeyCode.LeftControl) || Input.GetKey(KeyCode.RightControl) || Input.GetKey(KeyCode.RightCommand) || Input.GetKey(KeyCode.LeftCommand))
  16. return MultipleSelectionInputValue.Append;
  17. if (Input.GetKey(KeyCode.LeftShift) || Input.GetKey(KeyCode.RightShift))
  18. return MultipleSelectionInputValue.Append;
  19. return MultipleSelectionInputValue.Singular;
  20. }
  21. }
  22. }
  23. }