Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
27596ea4
Commit
27596ea4
authored
Oct 31, 2010
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
motion: Don't use unimotion on iOS.
parent
4598e488
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
3 deletions
+17
-3
modules/control/motion.c
modules/control/motion.c
+10
-3
modules/control/unimotion.c
modules/control/unimotion.c
+7
-0
No files found.
modules/control/motion.c
View file @
27596ea4
...
...
@@ -42,6 +42,13 @@
#endif
#ifdef __APPLE__
#include "TargetConditionals.h"
#if !TARGET_OS_IPHONE
#define HAVE_MACOS_UNIMOTION
#endif
#endif
#ifdef HAVE_MACOS_UNIMOTION
#include "unimotion.h"
#endif
...
...
@@ -52,7 +59,7 @@ struct intf_sys_t
{
enum
{
NO_SENSOR
,
HDAPS_SENSOR
,
AMS_SENSOR
,
APPLESMC_SENSOR
,
UNIMOTION_SENSOR
}
sensor
;
#ifdef
__APPLE__
#ifdef
HAVE_MACOS_UNIMOTION
enum
sms_hardware
unimotion_hw
;
#endif
int
i_calibrate
;
...
...
@@ -144,7 +151,7 @@ int Open ( vlc_object_t *p_this )
p_intf
->
p_sys
->
sensor
=
NO_SENSOR
;
}
}
#ifdef
__APPLE__
#ifdef
HAVE_MACOS_UNIMOTION
else
if
((
p_intf
->
p_sys
->
unimotion_hw
=
detect_sms
()))
p_intf
->
p_sys
->
sensor
=
UNIMOTION_SENSOR
;
#endif
...
...
@@ -307,7 +314,7 @@ static int GetOrientation( intf_thread_t *p_intf )
return
(
i_x
-
p_intf
->
p_sys
->
i_calibrate
)
*
10
;
#ifdef
__APPLE__
#ifdef
HAVE_MACOS_UNIMOTION
case
UNIMOTION_SENSOR
:
if
(
read_sms_raw
(
p_intf
->
p_sys
->
unimotion_hw
,
&
i_x
,
&
i_y
,
&
i_z
)
)
{
...
...
modules/control/unimotion.c
View file @
27596ea4
...
...
@@ -69,6 +69,13 @@
*/
#ifdef __APPLE__
#include "TargetConditionals.h"
#if !TARGET_OS_IPHONE
#define HAVE_MACOS_UNIMOTION
#endif
#endif
#ifdef HAVE_MACOS_UNIMOTION
#include "unimotion.h"
#include <IOKit/IOKitLib.h>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment