History

first cut at simulating mouse/reticle behavior with input contorllers

Brad Hefta-Gaub committed 10 years ago

Commit 3dcdfbc1 parent 205bc1b13 files · +123 −353Browse files

Showing the changes to libraries/input-plugins/src/input-plugins (1 of 13 files). Show all

Unified · Split

libraries/input-plugins/src/input-plugins/KeyboardMouseDevice.cpp+3−0
@@ -99,6 +99,9 @@ void KeyboardMouseDevice::mouseMoveEvent(QMouseEvent* event, unsigned int device · 98 unmodified lines
9999 _inputDevice->_axisStateMap[MOUSE_AXIS_Y_POS] = (currentMove.y() < 0 ? -currentMove.y() : 0.0f);
100100 _inputDevice->_axisStateMap[MOUSE_AXIS_Y_NEG] = (currentMove.y() > 0 ? currentMove.y() : 0.0f);
101101
102+ // FIXME - this has the characteristic that it will show large jumps when you move the cursor
103+ // outside of the application window, because we don't get MouseEvents when the cursor is outside
104+ // of the application window.
102105 _lastCursor = currentPos;
103106 _mouseMoved = true;
104107

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t