Announcement

Collapse
No announcement yet.

[BUG?]Crash/stop working correctly when GamePad is not connected and an event is triggered

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [BUG?]Crash/stop working correctly when GamePad is not connected and an event is triggered

    Hello guys,

    I written some code which is triggered when the GamePad Face Button Down is pressed. This is working perfectly. I decided to go ahead and have it so that the down key on my keyboard would trigger the same event so that a user can either use a gamepad or the keyboard. This is where the problems occur.

    When the gamepad is not connected or the event has not been pressed at least once with the gamepad, pressing the keyboard down key will crash the game. The keyboard down will only work after the down face button on the gamepad has been pressed at least once and the gamepad stays connected.

    If the gamepad event is pressed at least once and is disconnected, pressing the down key won't crash the program but instead have it not function correctly.

    I am not sure if this is a bug. The only thing that is changed is that the key down event handler is being added in addition to the gamepad face down event handler.

    Below is my blueprint for the following problem:
    Click image for larger version

Name:	Capture.PNG
Views:	1
Size:	220.5 KB
ID:	1155780

    I have a similar block to this for the D-Pad buttons and the WASD keys which works correctly without any crashes:

    Click image for larger version

Name:	Capture.PNG
Views:	1
Size:	238.6 KB
ID:	1155781

    RightHand_Down for example is an input I created in the engine's settings which calls if the Face Down Button or the Down key is pressed. I did try this using events for the Down key and the event for Face button Down seperately, similar to the second image, however this does not work either.

    The two functions there are my own C++ functions that I wrote, however should not be the issue as they are just called depending on what button is pressed.

    Any insight would be great, not sure why the above two blocks of code should be any different in the terms of doing a sequence of instructions. Also I am using UE 4.8.2
    Last edited by ChrisTheEngineer; 07-21-2015, 07:07 PM.

    #2
    I still couldn't figure out what the issue is after a few days. Any insight would be appreciated

    Comment

    Working...
    X