#Focus resource

10 messages · Page 1 of 1 (latest)

short dawn
#

I don't understand how the bevy::a11y::Focus resource is supposed to work.

I would expect there to be a way to assign focus to a certain Entity on startup. But the following fails (see below) and additionally doesn't seem elegant - it triggers a compiler warning.

Any help would be greatly appreciated.

stray seal
#

Ping @open sierra ❤️

open sierra
#

Focus doesn't make sense to use with bevy_ui since it's only meant for keyboard focus and bevy_ui doesn't have that concept. It's meant for UIs with keyboard and gamepad focus to sync that state with the accessibility API and doesn't do anything else (I.e. it doesn't set hover state or anything.)

short dawn
#

So I need to create my own UI plugin that lets me draw keyboard focus to UI elements?

Because if you're deafblind, like me, purely audio or visual games don't really work; I need something to interact with using my keyboard and braille display. I thought the purpose of integrating accesskit into Bevy was facilitating that?

At the moment, Bevy apps are screen reader-inaccessible with all cursor types apart from the touch cursor using JAWS, as far as I can tell.

grim narwhal
short dawn
stray seal
short dawn
stray seal
#

@open sierra had been leading that effort, although @smoky arrow has been helping too 🙂 The main thing that we need is a central design. #ui-dev is probably a better spot for this conversation though, so others can follow along