skokon
Topic Author
Posts: 11
Joined: 09 Jun 2024, 15:55

Handling Focus and Input in UE5

23 Jun 2024, 15:16

Hello everyone,

I'm using a custom drag behavior implemented in C++ and when I drag an item and then press the Tab key, the focus doesn't behave as expected. The UI retains focus, and I need to click outside the widget and press Tab again for the game to receive the action, and the keyboard input flushs

I've also tried to set all the xaml elements focusable variable to be false.

Any help or pointers would be greatly appreciated!

Thank you.
 
User avatar
hcpizzi
Site Admin
Posts: 342
Joined: 09 Feb 2012, 12:40

Re: Handling Focus and Input in UE5

25 Jun 2024, 11:26

Hi,

What's the behavior you're expecting? If I'm getting it right, you want the input to be handled by the player input after the drag and drop, and not by the UI. Am I right? If so, which input mode are you setting on the PlayerController?

Thanks
 
skokon
Topic Author
Posts: 11
Joined: 09 Jun 2024, 15:55

Re: Handling Focus and Input in UE5

26 Jun 2024, 16:30

Hi,

What's the behavior you're expecting? If I'm getting it right, you want the input to be handled by the player input after the drag and drop, and not by the UI. Am I right? If so, which input mode are you setting on the PlayerController?

Thanks
Hi,

Yes exactly that's what i want, I'm settings the input mode to Game and UI when the widget is visible

I'm also having another really weird issue, When i press right click on a draggable item its detected as left click, and after pressing left click, the drag and drop behaviour acts really weird
 
skokon
Topic Author
Posts: 11
Joined: 09 Jun 2024, 15:55

Re: Handling Focus and Input in UE5

30 Jun 2024, 23:59

I'm still waiting for an answer and have been stuck on this problem for over a week :( .

If the source code were available I would have solved it a long time ago.
 
User avatar
hcpizzi
Site Admin
Posts: 342
Joined: 09 Feb 2012, 12:40

Re: Handling Focus and Input in UE5

02 Jul 2024, 08:27

I'm sorry, I'm still looking into it. I'll do my best to figure it out before the end of the day.
 
User avatar
hcpizzi
Site Admin
Posts: 342
Joined: 09 Feb 2012, 12:40

Re: Handling Focus and Input in UE5

02 Jul 2024, 19:48

Hi again.

Could you please create a ticket on our bugtracking portal? I have a patch for you to try. It's all plugin code, so you can apply it on your side until we publish a new version.

Thanks!
 
User avatar
jsantos
Site Admin
Posts: 4123
Joined: 20 Jan 2012, 17:18
Contact:

Re: Handling Focus and Input in UE5

03 Jul 2024, 00:18

Just a few comments regarding this thread.
I'm still waiting for an answer and have been stuck on this problem for over a week :( .
For better response times, please don't reuse a thread with another problem, just create a new thread for every unrelated problem.
If the source code were available I would have solved it a long time ago.
The source code of the Unreal plugin is available.
 
skokon
Topic Author
Posts: 11
Joined: 09 Jun 2024, 15:55

Re: Handling Focus and Input in UE5

04 Jul 2024, 11:58

Hi again.

Could you please create a ticket on our bugtracking portal? I have a patch for you to try. It's all plugin code, so you can apply it on your side until we publish a new version.

Thanks!
Hi,

Sure, I will create a ticket, thank you so much :)
 
User avatar
hcpizzi
Site Admin
Posts: 342
Joined: 09 Feb 2012, 12:40

Re: Handling Focus and Input in UE5

04 Jul 2024, 13:22

I've replied on the ticket.

Who is online

Users browsing this forum: Google [Bot] and 7 guests