Jump to content
Sign in to follow this  
dr_eyeball

displaySetEventHandler ignores ] key

Recommended Posts

I have posted this here in order to confirm whether this is a real bug or not. Any confirmations (or a fix) would be appreciated.

I posted this on Mantis (issue #00019), based on existing submission advice on this forum & BIKI (is that info still valid?), but I don't know if it's truly active. I don't know where bugs get posted these days.

Description:

(findDisplay 46) displaySetEventHandler with "KeyDown" event, does not recognise the right square bracket key on the keyboard.

All other keys work fine.

Relevance: The right square bracket is the standard 'NextAction' menu key, so making alternate menu interfaces such as MFD (multi-function display) menus & popup menus (using rscTitles or dialogs), with identical standard interaction is not possible.

Suggested cause: it may be hard-coded into arma somewhere since it still allows interaction with the ArmA main menu and Action menu, whereas other keys (like left square bracket) can be trapped by the UI event handler.

Suggested workaround: None, since it doesn't even recognise the key.

Additional Information

I've also tried it with/without the right square bracket key being assigned in Arma's Options->Controls configuration.

See Mantis (issue #00019) for additional Info & Notes.

Test Downloads: (same as already on Mantis)

Test Mission: _test_bracketKeyBug.Intro.rar

th_RightBracketKeyBug.jpgTest Screenshot

Test Instructions:

- In mission, select MFD action (or press Left Alt "LookAround" key).

- Press '[' and ']' to scroll. -- (You will find ']' doesn't work. That's the TEST.)

- You can also use PgUp/PgDn to scroll (added for test purposes).

- Press 'Enter' to select.

Share this post


Link to post
Share on other sites

what about addAction "next action" action (key)?

Share this post


Link to post
Share on other sites

Not sure what you mean. Are you suggesting using "NextAction" as the shortcut for the addAction command?

For whatever reason, it seem that you can't use most of those menu-related actions as shortcuts with addAction command.

However, I'm primarily concerned with the displaySetEventHandler command and that single key not being detected at all.

These are the key lists being used:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">actionKeys "MenuBack"

actionKeys "PrevAction"

actionKeys "NextAction"

actionKeys "Action"

#define DIK_LBRACKET 0x1A

#define DIK_RBRACKET 0x1B

(from DIK codes)

Share this post


Link to post
Share on other sites

Hm sending a mail to BI or PM to Ondrej might help.

As you describe the problem very well and supply all the info

needed. smile_o.gif

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×