Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mouse support for CBA_fnc_addKeyHandler #651

Merged
merged 17 commits into from
May 1, 2017
Merged

Mouse support for CBA_fnc_addKeyHandler #651

merged 17 commits into from
May 1, 2017

Conversation

commy2
Copy link
Contributor

@commy2 commy2 commented Apr 23, 2017

When merged this pull request will:

To keep some internal arrays smaller I use some unused DIK codes for the mouse keys.

0xF0: LMB
0xF1: RMB
0xF2: MMB
0xF3-7: Mouse #4 - Mouse #8 
0xF8: Mouse wheel up
0xF9: Mouse wheel down

@commy2 commy2 added this to the 3.4 milestone Apr 23, 2017
@commy2 commy2 self-assigned this Apr 23, 2017
@commy2 commy2 changed the title Mouse support Mouse support for CBA_fnc_addKeyHandler Apr 23, 2017
@commy2 commy2 added Bug Fix and removed Bug labels Apr 23, 2017
@commy2 commy2 changed the base branch from master to keybinding May 1, 2017 02:05
* add mouse button translations to custom dik codes

* fix keyHandler becoming unremovable if added to two different keys (#653)

* fix keyHandler becoming unremovable if added two different keys

* fix strange modifier key behavior (#654)

* fix strange modifier key behaviour

* disable modifier state in keyDown if released
@commy2 commy2 merged commit dbebf3b into keybinding May 1, 2017
@commy2 commy2 deleted the mouse-support branch May 1, 2017 02:10
commy2 added a commit that referenced this pull request May 20, 2017
* Mouse support for CBA_fnc_addKeyHandler  (#651)

* use last possible single key as array size

* delete superfluous check, fix header

* roll less, but bigger numbers to generate random hashkey

* header formatting

* only compile functions on machines with interface

* add mission display ui events directly on display init

* rename display load functions for naming conventions

* prepare mouse handers in zeus display

* fix issues with blocking key events

* isEqualTo for maximum performance :S

* fix no return value making blocking undefined

* simplify

* better variable name

* remove a superfluous check

* add a comment to seperate key handler code from other stuff

* add support for mouse keys and the scroll wheel

* add mouse button translations (#652)

* add mouse button translations to custom dik codes

* fix keyHandler becoming unremovable if added to two different keys (#653)

* fix keyHandler becoming unremovable if added two different keys

* fix strange modifier key behavior (#654)

* fix strange modifier key behaviour

* disable modifier state in keyDown if released

* squash-CBA_fnc_addKeybind-redo (#656)

* fix a script error

* add function to translate keys

* joinString

* fix rebinding would delete default keyup handler

* CfgFunctions

* display multiple keybinds in diary

* fix for travis

* remake keybinding ui and add mouse support (#638)

* remake rebinding ui for mouse support

* remember last selected addon in keybinding ui
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants