History

Merge branch 'master' of https://github.com/worklist/hifi into 19507

Stojce Slavkovski committed 12 years ago

Commit 863a8882 parents a1c3152 cb14cc516 files · +83 −173Browse files

Showing the changes to interface/src/Application.cpp (1 of 16 files). Show all

Unified · Split

interface/src/Application.cpp+1−37
@@ -1217,10 +1217,6 @@ void Application::touchBeginEvent(QTouchEvent* event) { · 1216 unmodified lines
12171217 return;
12181218 }
12191219
1220− // put any application specific touch behavior below here..
1221− _lastTouchAvgX = _touchAvgX;
1222− _lastTouchAvgY = _touchAvgY;
1223−
12241220 }
12251221
12261222 void Application::touchEndEvent(QTouchEvent* event) {
@@ -1875,34 +1871,6 @@ void Application::updateMyAvatarLookAtPosition() { · 648 unmodified lines
18751871 _myAvatar->getHead()->setLookAtPosition(lookAtSpot);
18761872 }
18771873
1878−void Application::updateHandAndTouch(float deltaTime) {
1879− bool showWarnings = Menu::getInstance()->isOptionChecked(MenuOption::PipelineWarnings);
1880− PerformanceWarning warn(showWarnings, "Application::updateHandAndTouch()");
1881−
1882− // Update from Touch
1883− if (_isTouchPressed) {
1884− _lastTouchAvgX = _touchAvgX;
1885− _lastTouchAvgY = _touchAvgY;
1886− }
1887−}
1888−
1889−void Application::updateLeap(float deltaTime) {
1890− bool showWarnings = Menu::getInstance()->isOptionChecked(MenuOption::PipelineWarnings);
1891− PerformanceWarning warn(showWarnings, "Application::updateLeap()");
1892−}
1893−
1894−void Application::updateSixense(float deltaTime) {
1895− bool showWarnings = Menu::getInstance()->isOptionChecked(MenuOption::PipelineWarnings);
1896− PerformanceWarning warn(showWarnings, "Application::updateSixense()");
1897−
1898− _sixenseManager.update(deltaTime);
1899−}
1900−
1901−void Application::updateSerialDevices(float deltaTime) {
1902− bool showWarnings = Menu::getInstance()->isOptionChecked(MenuOption::PipelineWarnings);
1903− PerformanceWarning warn(showWarnings, "Application::updateSerialDevices()");
1904−}
1905−
19061874 void Application::updateThreads(float deltaTime) {
19071875 bool showWarnings = Menu::getInstance()->isOptionChecked(MenuOption::PipelineWarnings);
19081876 PerformanceWarning warn(showWarnings, "Application::updateThreads()");
@@ -2016,11 +1984,7 @@ void Application::update(float deltaTime) { · 107 unmodified lines
20161984 updateVisage();
20171985 _myAvatar->updateLookAtTargetAvatar();
20181986 updateMyAvatarLookAtPosition();
2019−
2020− updateHandAndTouch(deltaTime); // Update state for touch sensors
2021− updateLeap(deltaTime); // Leap finger-sensing device
2022− updateSixense(deltaTime); // Razer Hydra controllers
2023− updateSerialDevices(deltaTime); // Read serial port interface devices
1987+ _sixenseManager.update(deltaTime);
20241988 updateMyAvatar(deltaTime); // Sample hardware, update view frustum if needed, and send avatar data to mixer/nodes
20251989 updateThreads(deltaTime); // If running non-threaded, then give the threads some time to process...
20261990 _avatarManager.updateOtherAvatars(deltaTime); //loop through all the other avatars and simulate them...

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