Mouse input doesn't work
I've begun, to set the input in code. The WASD and Space Bar works, but the mouse doesn't work. I cannot turn the character, not even aim or fire. I wrote: InputComponent->BindAxis("Turn", this, &AMyCharacterClass::AddControllerYawInput);. I made the same in blueprint, but it's the same. What should I change? Thanks!
asked Oct 28 '14 at 01:17 PM in C++ Programming
I think this works, but you cannot see any effects. First check if your controller rotates. Run game, hit ~ and type "DisplayAll PlayerController Rotation". Value should be displayed on the top of a screen as a text line, then move mouse to check if it changes. If this works, make sure that your character/camera boom/camera have bUsePawnControlRotation flag set. You should also set this flags: bUseControllerRotationPitch, bUseControllerRotationYaw, bUseControllerRotationRoll. Marcin
answered Oct 28 '14 at 01:39 PM
Check on the Project Settings -> Input on Axis Mapping if you have Turn mapped to Mouse X. If you do, put a breakpoint on the AddControllerYawInput to see if it triggers. If it does, there should be something wrong with you logic in that function.
answered Oct 28 '14 at 01:40 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here