[Kernel] Read all the buttons.

Built in controls, analog controls, DualShock, etc.
Post Reply
User avatar
DevDavisNunez
Posts: 7
Joined: Sun Jan 01, 2017 3:19 am

[Kernel] Read all the buttons.

Post by DevDavisNunez » Sun Jan 01, 2017 3:24 am

Hello everyone!

Anyone know any way to read the buttons, PS and volume buttons?

In psp I do it by executing code in the kernel part, and exporting the function to use it in the application, but here I do not understand how it could be.

Greetings.

xerpi
Posts: 4
Joined: Sun Jan 01, 2017 12:53 pm

Re: [Kernel] Read all the buttons.

Post by xerpi » Sun Jan 01, 2017 12:56 pm

Hi! Yeah I think you'll have to write your kernel plugin that exports to userspace, yesterday I added some kernel ctrl functions btw: https://github.com/vitasdk/vita-headers ... ern/ctrl.h

User avatar
DevDavisNunez
Posts: 7
Joined: Sun Jan 01, 2017 3:19 am

Re: [Kernel] Read all the buttons.

Post by DevDavisNunez » Mon Jan 02, 2017 7:16 pm

Hello Xerpi!
I imagine it, but how do I indicate in the compilation that I export a function !?
In the makefile, do you add something specific to the plugin?

xerpi
Posts: 4
Joined: Sun Jan 01, 2017 12:53 pm

Re: [Kernel] Read all the buttons.

Post by xerpi » Tue Jan 03, 2017 12:20 am

You have to add the functions you are exporting the yml to do that. And then on the importer, add this flag to the vita-elf-create:

Code: Select all

vita-elf-create -e exporter.yml ...

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest