Interface IInputKeyEx
Inherited Members
Namespace: GameCanvas
Assembly: GameCanvas.dll
Syntax
public interface IInputKeyEx : IInputKey
Properties
IsAnyKey
なんらかのキーイベントがあるかどうか
Declaration
bool IsAnyKey { get; }
Property Value
Type | Description |
---|---|
Boolean |
IsAnyKeyDown
いずれかのキーが押されたかどうか
Declaration
bool IsAnyKeyDown { get; }
Property Value
Type | Description |
---|---|
Boolean |
IsAnyKeyHold
いずれかのキーが押されているかどうか(押された瞬間を除く)
Declaration
bool IsAnyKeyHold { get; }
Property Value
Type | Description |
---|---|
Boolean |
IsAnyKeyPress
いずれかのキーが押されているかどうか(押された瞬間を含む)
Declaration
bool IsAnyKeyPress { get; }
Property Value
Type | Description |
---|---|
Boolean |
IsAnyKeyUp
いずれかのキーが離されたかどうか
Declaration
bool IsAnyKeyUp { get; }
Property Value
Type | Description |
---|---|
Boolean |
KeyEscape
戻るボタン(Androidのみ)
Declaration
Key KeyEscape { get; }
Property Value
Type | Description |
---|---|
Key |
KeyPressCount
前回のフレームに引き続き 押されているキーの数(押された瞬間を含む)
Declaration
int KeyPressCount { get; }
Property Value
Type | Description |
---|---|
Int32 |
Methods
GetKeyPressDuration(Key)
指定されたキーが押されている時間(秒)
Declaration
float GetKeyPressDuration(in Key key)
Parameters
Type | Name | Description |
---|---|---|
Key | key | キー |
Returns
Type | Description |
---|---|
Single | 時間(秒) |
GetKeyPressFrameCount(Key)
指定されたキーが押されているフレーム数
Declaration
int GetKeyPressFrameCount(in Key key)
Parameters
Type | Name | Description |
---|---|---|
Key | key | キー |
Returns
Type | Description |
---|---|
Int32 | フレーム数 |
IsKeyHold(Key, out GcKeyTrace)
指定されたキーが押されているかどうか(押された瞬間を除く)
Declaration
bool IsKeyHold(in Key key, out GcKeyTrace trace)
Parameters
Type | Name | Description |
---|---|---|
Key | key | キー |
GcKeyTrace | trace | キーの軌跡 |
Returns
Type | Description |
---|---|
Boolean | 押されているかどうか(押された瞬間を除く) |
IsKeyUp(Key, out GcKeyTrace)
指定されたキーが離されたかどうか
Declaration
bool IsKeyUp(in Key key, out GcKeyTrace trace)
Parameters
Type | Name | Description |
---|---|---|
Key | key | キー |
GcKeyTrace | trace | キーの軌跡 |
Returns
Type | Description |
---|---|
Boolean | 離されたかどうか |