<commit_before>﻿using HK.Framework.EventSystems;
using UnityEngine;

namespace Metro.Events.InputSystems
{
    /// <summary>
    /// タップ時のイベント
    /// </summary>
    public sealed class Tap : UniRxEvent<Tap, Vector2>
    {
        public Vector2 ScreenPosition { get { return this.param1; } }
    }

    /// <summary>
    /// スワイプ時のイベント
    /// </summary>
    public sealed class Swipe : UniRxEvent<Swipe, Vector2>
    {
        public Vector2 Normalize { get { return this.param1; } }
        
        /// <summary>
        /// 入力方向の角度を返す
        /// </summary>
        public float Angle { get { return Mathf.Atan2(this.Normalize.y, this.Normalize.x) * Mathf.Rad2Deg; } }
    }

    /// <summary>
    /// フリック時のイベント
    /// </summary>
    public sealed class Flick : UniRxEvent<Flick, Vector2>
    {
        public Vector2 Direction { get { return this.param1; } }
    }
}<commit_msg>:new: PointerDownとPointerUpを追加<commit_after>﻿using HK.Framework.EventSystems;
using UnityEngine;

namespace Metro.Events.InputSystems
{
    /// <summary>
    /// タップ時のイベント
    /// </summary>
    public sealed class Tap : UniRxEvent<Tap, Vector2>
    {
        public Vector2 ScreenPosition { get { return this.param1; } }
    }

    /// <summary>
    /// スワイプ時のイベント
    /// </summary>
    public sealed class Swipe : UniRxEvent<Swipe, Vector2>
    {
        public Vector2 Normalize { get { return this.param1; } }
        
        /// <summary>
        /// 入力方向の角度を返す
        /// </summary>
        public float Angle { get { return Mathf.Atan2(this.Normalize.y, this.Normalize.x) * Mathf.Rad2Deg; } }
    }

    /// <summary>
    /// フリック時のイベント
    /// </summary>
    public sealed class Flick : UniRxEvent<Flick, Vector2>
    {
        public Vector2 Direction { get { return this.param1; } }
    }

    /// <summary>
    /// タッチされた際のイベント
    /// </summary>
    public sealed class PointerDown : UniRxEvent<PointerDown, Vector2>
    {
        public Vector2 ScreenPosition { get { return this.param1; } }
    }
    
    /// <summary>
    /// 指が離れた際のイベント
    /// </summary>
    public sealed class PointerUp : UniRxEvent<PointerUp, Vector2>
    {
        public Vector2 ScreenPosition { get { return this.param1; } }
    }
}
{'fraction_non_alphanumeric': 0.13200723327305605, 'fraction_numerical': 0.012658227848101266, 'mean_word_length': 2.023224043715847, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 31, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5555993', 'n_tokens_mistral': 784, 'n_tokens_neox': 769, 'n_words': 155}