Reduce blink windows phone 7 flash - windows-phone-7

What is the best approach to set a Windows Phone 7 led to torch mode? I have used http://www.locked.nl/wp7-flashlight-getting-started but using reflection and/or the VideoCaptureDevice is not allowed. (only works on dev phone)
I have used the AutoFocusCompleted event and have tried a task (taskfactory.new) and regular task. My latest attempt uses the DispatcherTimer.
So what is the best approach to keep calling Focus and/or FocusAtPoint to minimize the blinking and get the closest to a constant light.
Windows Phone 7 - Camera Flash App Not Functioning

Related

Is there any way to make a First Person Shooter input in Windows 8.1?

I am working on a Windows 8.1 store game.
There is no specific need for the game to be a windows store app but I use it for development since I already had code for windows store and didn't bother to migrate the input and game loop code to a traditional desktop app.
The issue I am having now is that the Pointer(which can be a mouse/touch/pen) is bound to the screen's resolution.
I didn't find any way to work around it or to set the mouse cursor so I can't create a first person shooter like aimer or pointer.
I know it is possible to do so in a traditional win32 desktop app but I wonder if this limitation is only for Windows Store apps or will I encounter the same limitation in a traditional desktop app that runs on Windows 8.1?
In other words is this limitation a Windows 8.1 thing? Or a Windows store app thing?
Is there a way to create a FPS like mouse/aimer in a windows 8.1 store app?
You can remove the app window bounds limitations and it is possibly even easier than in a Win32 app. The only thing you need to do is this:
Window.Current.CoreWindow.PointerCursor = null;
From now on handle this event to get the delta values when the mouse moves:
MouseDevice.GetForCurrentView().MouseMoved
I use it here.

Multitouch on Emulator (Windows Phone 8.0)

In my Windows Phone 8.0 project, I am using 2 slider(right and left side) for controlling my robot but it is possible to use multitouching on Windows Phone Emulator? I would like to control 2 slider at the same time.
Sliders
If you run it on a computer with multi-touch then the emulator will pass that through.
If not then you can only test single-touch or specific gestures such as rotate and pinch-zoom with the "Multi-touch Input" tool (the hand on the emulator's toolbar). It will be a bit limited, but you should be able to use this tool to run both sliders simultaneously, if not independently.
--Rob

How to detect if Windows 8 is showing desktop

In a Windows desktop application written in C# and running on Windows 8 how can I detect if Windows 8 is in desktop mode (i.e. showing the Desktop rather than the modern UI)?
Although it's in C++, the Start Screen Visibility Sample should be a good starting point for you. It uses COM objects to get the state of all monitors on the system that are either displaying Windows Store Apps or the Start Screen, and illustrates how to receive notifications when the state of a monitor changes or when the visibility of the Start screen changes.

Simulating touch gestures on XNA in windows

I am developing a game for Windows Phone 7 using XNA, and I have set it up so that it runs as a Windows XNA app as well. The thing that I am having a problem with now is simulating the XNA touch gestures using the mouse in the same way that the Windows Phone 7 emulator does. I can't use the Windows Phone 7 emulator because it refuses to run on my laptop, because the hardware isn't new enough.
Any ideas on where I might either find a library which can translate mouse data to touch gestures, or where I might find enough information to get started without huge amounts of guesswork?
Here is a good article about Gestures (CS)/Gestures (VB).
Article Overview
Compare the Gestures abilities of Windows Phone 7 to other major phone
platforms, and learn how to take both gesture and raw touch input on
Windows Phone 7. This article is a thorough comparison of the gestures
features available across the major phone platforms, and contains code
to support basic touch-based input scenarios.

Is it possible to emulate a second finger for the Windows Phone 7 emulator?

It's a bit annoying having to deploy to a device everytime to test multitouch functionality so I was just wondering if it's possible to fake the second finger. Obviously plugging in two mouse's doesn't help...
There's no out of the box support for this at the moment, but there are some options you can look into for this.
Jonas Follesø's World of Software - Simulating multitouch on the Windows Phone 7 Emulator
Windows MultiPoint Mouse Software Development Kit
Multi-Touch Vista
In addition to the links from Mick N, you may also want to have a look at the MultiTouch Behavior for Windows Phone 7. As this includes support for simulating multiple touches with the emulator and a single mouse while testing.

Resources