Lumino
ln::Input Class Reference

ゲームパッドやキーボードなどの入力デバイスを透過的に扱うためのインターフェイスです。 More...

#include <Input.hpp>

Static Public Member Functions

static bool isPressed (const StringRef &buttonName)
 ボタンが現在押されているかを判定します。
 
static bool isTriggered (const StringRef &buttonName)
 ボタンが新しく押された瞬間を判定します。
 
static bool isTriggeredOff (const StringRef &buttonName)
 ボタンが離された瞬間を判定します。
 
static bool isRepeated (const StringRef &buttonName)
 ボタンが新しく押された瞬間とリピート状態を判定します。
 
static float getAxisValue (const StringRef &buttonName)
 指定した軸のアナログ値を取得します。
 
static void addBinding (const StringRef &buttonName, InputGesture *gesture)
 ボタンのアクションマッピングを追加します。
 
static void removeBinding (InputGesture *gesture)
 アクションマッピングを除外します。
 
static void clearBindings (const StringRef &buttonName)
 指定したボタンのアクションマッピングをすべて削除します。
 
static void clearAllBindings ()
 全てのアクションマッピングを削除します。
 
static InputGesturegetAnyActiveTriggered ()
 サポートしているすべての入力のうち、現在入力中であるものを InputGesture として返します。 More...
 
static void disableUntilIdle ()
 すべてのボタンが離されるまで入力を無効にします。
 

Detailed Description

ゲームパッドやキーボードなどの入力デバイスを透過的に扱うためのインターフェイスです。

Member Function Documentation

◆ getAnyActiveTriggered()

static InputGesture* ln::Input::getAnyActiveTriggered ( )
static

サポートしているすべての入力のうち、現在入力中であるものを InputGesture として返します。

この機能はキーコンフィグ用のヘルパーです。新しく押された瞬間を判定します。それ以外は nullptr を返します。


The documentation for this class was generated from the following file: