x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

CTRL standalone as action?

Hello,

I want use the CTRL Key standalone as action, but it dont my way.

In defined in the DefaultInput.INI this:

 +ActionMappings=(ActionName="SetCombat",Key=None,bShift=False,bCtrl=True,bAlt=False,bCmd=False)

In my PlayerController I definied the InputComponent and my handler.

InputComponent:

 void APrototypeArgentumPlayerController::SetupInputComponent()
 {
     // set up gameplay key bindings
     Super::SetupInputComponent();
 
     InputComponent->BindAction("SetCombat", IE_Pressed, this, &APrototypeArgentumPlayerController::OnSetCombatPressed);
     InputComponent->BindAction("SetCombat", IE_Released, this, &APrototypeArgentumPlayerController::OnSetCombatReleased);
 }

Handlers:

 void APrototypeArgentumPlayerController::OnSetCombatPressed()
 {
     // Todo: ...
 }
 
 void APrototypeArgentumPlayerController::OnSetCombatReleased()
 {
     // Todo: ...
 }

Basicly I want switch in-game into a Comat State via. CTRL only.

Cheers, Heady

Product Version: Not Selected
Tags:
more ▼

asked May 08 '15 at 05:01 PM in C++ Programming

avatar image

Headzup
176 10 12 21

avatar image Shadowriver May 08 '15 at 07:11 PM

Well you set key to "None" so it won't work, ctrl should be a key. Why don't you try setting up bindings in Project Settings?

avatar image Headzup May 09 '15 at 07:35 AM

It's working via. the DefaultInput.INI. When I look in the Project-Settings I can see the entry. When I set Key to A for example it's working with CTRL+A.

But your advice makes sense :D I try to find a Key for CTRL.

Update: OMG, that was easy thanks... I was to tired... I overseen the Left CTRL and Right CTRL Key in the Combobox -.- Now it works, thx.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question