integrating with windows phone hardware jaime rodriguez

17
Integrating with Windows Phone Hardware Jaime Rodriguez http://blogs.msdn.com/jaimer , @ jaimerodriguez

Upload: maud-ray

Post on 18-Jan-2018

224 views

Category:

Documents


0 download

DESCRIPTION

Keyboard

TRANSCRIPT

Page 1: Integrating with Windows Phone Hardware Jaime Rodriguez

Integrating withWindows Phone Hardware

Jaime Rodriguezhttp://blogs.msdn.com/jaimer, @jaimerodriguez

Page 2: Integrating with Windows Phone Hardware Jaime Rodriguez

Agenda

Keyboard Touch

Silverlight XNA

Accelerometer Audio Video Location Compass

Page 3: Integrating with Windows Phone Hardware Jaime Rodriguez

Keyboard

Silverlight TextBox integrates with the SIP Supports and scrolling Password has a delay

SIP supports input scoping Key InputScopes: Text, Url, Number, Time,

TelephoneNumber, EmailNameOrAddress

Page 4: Integrating with Windows Phone Hardware Jaime Rodriguez

Demo

Software Keyboard and Input Scope

Page 5: Integrating with Windows Phone Hardware Jaime Rodriguez

Touch (in Silverlight)

OOB Controls support touch Translate touch events to mouse events ScrollViewer has built-in support for pan and flick.

Manipulation for all UIElements Scale Translate

Coming later, before v1 RTT: Raw Touch, compatible with SL3

Page 6: Integrating with Windows Phone Hardware Jaime Rodriguez

Demo

Touch in SIlverlight

Page 7: Integrating with Windows Phone Hardware Jaime Rodriguez

Touch in XNA

TouchPanel public static TouchPanelCapabilities GetCapabilities(); public static TouchCollection GetState();

TouchLocation public Vector2 Position { get; } public int Id { get; } public bool TryGetPreviousLocation (out TouchLocation

… );

Page 8: Integrating with Windows Phone Hardware Jaime Rodriguez

Accelerometer

Measures force applied on each axis over time

+Y

-Y

+X-X

+Z

-Z

Page 9: Integrating with Windows Phone Hardware Jaime Rodriguez

Demo

Accelerometer

Page 10: Integrating with Windows Phone Hardware Jaime Rodriguez

Audio Input

Mic input Gives access to raw PCM WAV data Calls BufferReady event at regular intervals Call the GetData method from the BufferReady event

or as often as your app requires 10ms latency

Page 11: Integrating with Windows Phone Hardware Jaime Rodriguez

Media

Media support H/W decode MediaStreamSource PlayReady DRM

MediaElement Limitations One MediaElement only No VideoBrush

XNA sound effect API Supports polyphonic, looping wav data

Page 12: Integrating with Windows Phone Hardware Jaime Rodriguez

Vibration

Vibrates the phone for a given duration Useful for haptic feedback Notifying users of updates

VibrateController vc = VibrateController.Default;vc.Start(TimeSpan.FromSeconds(2));// vc.Stop (); //to stop it before the timespan

Page 13: Integrating with Windows Phone Hardware Jaime Rodriguez

Demo

Vibrate & Media

Page 14: Integrating with Windows Phone Hardware Jaime Rodriguez

location

Location services

WiFi

+ Accuracy- Power- Speed- Indoors

- Accuracy+ Power+ Speed- Wilderness

+/- Accuracy+/- Power+/- Speed+/- Urban areas

GPS

Cell towers

Page 15: Integrating with Windows Phone Hardware Jaime Rodriguez

Location Services

Smart device + cloud service

Balance accuracy with time & power

Consistent API across platforms

Page 16: Integrating with Windows Phone Hardware Jaime Rodriguez

Demo

location services

Page 17: Integrating with Windows Phone Hardware Jaime Rodriguez

Thanks!! Questions ?