私は現在c++でプレイヤーキャラクターの操作処理をSetupPlayerInputComponent関数でバインドして行っています。
これをTick関数でMappingした入力を指定して現在の状況を取得したいと考えています。
この取得を実現することができる関数があるかもしくはないか教えて頂きたいです。そしてあるのであればどうやって関数を呼ぶのかを教えて頂きたいです。
以下に参考プログラムを記載します。
<現在のソース>
void ATestCharacter::SetupPlayerInputComponent(class UInputComponent* PlayerInputComponent) {
PlayerInputComponent->BindAction("Jump", IE_Pressed, this, &ATestCharacter::Jump);
}
<理想修正ソース>
void ATestCharacter::Tick( float DeltaTime ) {
if ( Input->IsKeyDown( "Jump" ) ) {
Jump( );
}
}
よろしくお願いします。