Xinput1.4.dll not working with UWP apps - c#

I am trying to create an UWP app that uses xinput. Trying to get input from a controller using a WPF app , all good. Trying the same code in a UWP app nothing. Am I doing something wrong or xinput really doesn't work with UWP.

There is a new WinRT API in the Windows.Gaming.Input namespace for universal Windows apps. This API supports both the Xbox 360 Common Controller and the Xbox One controller, including access to the left/right trigger motors. The latest version of GamePad is implemented using this new API when built for Windows 10. You can refer to MSDN for Windows.Gaming.Input namespace.
As about XInput: For UWP, you can continue to use the XInput 1.4 API but need to change from linking to xinput.lib to xinputuap.lib, which is an adapter for the new API for universal Windows apps--this adapter does not exist headset audio either. This blog may help you.

Related

how can use insagram api on windows application?

i like to learn how to use instagram-
Heading
api on windows application i try to search a websites and found only asp.net and py etc . but i want to use api on windows application like telegram messenger
anybody help me?
You use the API in the same way regardless of whether or not you have a Web application or a Windows Form / XAML. There are even existing wrappers you can use.

Is UWP / XAML C# compatible with the Spotify API?

I am learning development for Windows Universal Platform and I wanted to create a simple app capable of leveraging some Spotify data once the user logs in.
I can see from the documentation that there is an SDK for Android and iOS, and a library that is considered deprecated.
Do you guys know if there is any way for me to still communicate with the Spotify API using .NET/C# ?
Thanks a lot,
Florian
There doesn't seem to be a SDK from Spotify, but there are references to WebApi .Net Wrappers at the bottom of this official page:
Spotify Web API Wrapper on Codeplex
Spotify Web API Wrapper on GitHub

Microsoft.Advertising.Mobile.Xna, Xna does not exist in the namespace

I have created a Mobile application, and as it's my first application, and I'm learning how to do windows phone applications, I want to insert ads into.
I have seen this site: http://social.msdn.microsoft.com/Forums/windowsapps/en-US/8adb6cb5-4274-40b3-b1eb-4f06fdaedb86/how-do-i-add-advertisements-in-my-app?forum=wpdevelop
but when I add using Microsoft.Advertising.Mobile.Xna I have been able to add the reference Microsoft.Advertising.Mobile and Microsoft.Advertising.Mobile.UI but I haven't found Microsoft.Avertising.Mobile.Xna
Is there an other way to insert ads created by Microsoft PubCenter, Am I missing something about Xna?
you should follow these steps for windows phone 7 Advertising Sdk Implementation:
Installing the Microsoft Advertising SDK.
Registering the application with the Microsoft pubCenter.
Embedding the ad control in the application.
For Implementing AdControl in App you can try this:
XAML:
<advertising:AdControl ApplicationId="test_client"
AdUnitId="Image480_80">
</advertising:AdControl>
Note: Add this in <phone:PhoneApplicationPage> Tag
xmlns:advertising="clr-namespace:Microsoft.Advertising.Mobile.UI;assembly=Microsoft.Advertising.Mobile.UI"
After this you can see Test Ads in your Application.
for more Reference you can go here Using display ads in Windows Phone 7 apps and you can find good sample here Windows Phone 7 AdControl Example

Using Azure how do you list blobs in a container for Windows phone 8?

I want to list file names of the blobs in a container on my Azure server using Windows Phone 8.
I'm using this: using Microsoft.WindowsAzure.Samples.Phone.Storage;
Library is: Windows Azure Storage Client Library for Windows Phone v1.0.1.
The library has been deprecated, but it's the only one that will work with WP8. (Unless someone knows of another one?)
Code:
ICloudBlobContainer container = blobClient.GetContainerReference("containerName");
I'm not sure what arguments to pass to this:
container.ListBlobs()
Visual Studios recommendation is this:
Action<CloudOperationResponse<IEnumerable<ICloudBlob>>> callback
But I don't know what that is. Anyone know?
Hello yes the toolkit has been deprecated the other way is I think that you can start using the Windows Azure Mobile Services:
http://www.windowsazure.com/en-us/develop/mobile/
if you previously have worked on Windows Azure Node JS then you can easily build a new Windows Azure Mobile API that do the required action which is listing the blob and call this API from your Windows Phone application.
here is the resources of the NodeJS and how it uses the Windows Azure Blob Storage:
http://www.windowsazure.com/en-us/develop/nodejs/how-to-guides/blob-storage/
to integrate it with the Mobile Services, just fo to your portal, create new Windows Azure Mobile Services and under API enter the NodeJS Code. here is a link demonstrating how to work with it:
http://weblogs.asp.net/scottgu/archive/2013/06/14/windows-azure-major-updates-for-mobile-backend-development.aspx
i hope this helps you, let me know if you need anything else.

web app for mobile

So we already have a web service that was develop a long time ago. It's the legacy .net web service (not WCF)
I'm looking into how to build a web application that i'll be able to run on multiple different devices : IPhone, IPad, Android.
So far i've seen PhoneGap : http://www.phonegap.com/. This is interesting for us because it seems to allow us to use Native Device Features. Our app needs to use Scanning capabilities.
Since phonegap is based on HTML ... would it be possible to have it communicate with our legacy web service? How can this be achieved?
Let's say our app don't need to use any device native features, I guess just building a regular ASP.NET page should work right?
Do I have to make modification to our existing webservice? Like making it RESTful?
Any advice is appreciated,
Thanks,
You simply create an XMLHttpRequest in Javascript, pass in your GET/POST parameters, and handle the XML which the webservice returns. It's quite simple, really!
jQuery gives javascript developers $.get and $.post functions which make this extremely easy. Remember, you can use any javascript library and function supported by the devices webview within your phonegap application!
Titanium Appcelerator is another alternative.
The application is developed in javascript and native code generated for iPhone, Android and in the latest release for Blackberry as well.
EDIT: Here is a comparison of Phonegap and Titanium.
Related discussion on Stackoverflow:
Is Titanium appcelerator worth it for developing camera based application on ipad, iphone and android?

Categories

Resources