Comments (3)
Hello xerpi,
Thank you for you clarification.
In fact, my main purpose was to understand how "ds4vita" connects to the PS Vita through BlueTooth and see if the PS TV follows the same protocol. By "luck", it is the case. :-)
From this knowledge (thanks to your code ;-) ), I was able to create plugins for PS TV which catch DS3/4 controllers BlueTooth signal, retrieve accelerometer/gyroscope sensor data and interpret them for "SceMotion" calls. Here is the code:
https://github.com/OperationNT414C/DSMotion
It would have been better to directly hook "SceMotionDev" calls and inject sensors retrieved data but those functions are not documented. Do you know any procedure to "understand" how an undocumented function works? (I mean, at least, knowing the function signature)
Those plugins also work on a real PS Vita with "ds3vita" and "ds4vita". However, with "ds3vita", motion sensors data seems to much spaced over time. The PS TV driver for DS3 doesn't have this issue: do you think it could be related to the data sent through call "ds3_set_operational"?
Anyway, it is not an important usecase :-). Thank you again for your sources, I wouldn't be able to do it without them!
from ds4vita.
By looking at some taihen code ("module.c"), I wrote inside the plugin some lines to get accessible modules. Here is the output:
"SceMotion" isn't an accessible module. However, undocumented "SceMotionDev" module exists. My guess is that "SceMotion" is just a "helper" for "SceMotionDev" and it is loaded only in application context.
from ds4vita.
Yeah that's right, SceDriverUser is the user module that is a wrapper from SceMotionDev to SceMotion, as you can see here and here.
from ds4vita.
Related Issues (20)
- [Feature request] Rumble support HOT 1
- L1/R1 being mapped to L2/R2 in certain games HOT 5
- L2 / R2 as rear touch HOT 13
- New version of ds4vita crash the adrenaline and vita system HOT 2
- [Feature request] Support for usb connection for XIM APEX HOT 1
- R2/L2 don't work in Adrenaline HOT 1
- [FEATURE REQUEST] PS3 support in same plugin HOT 1
- [Request] PS5 Controller Support
- {sugetsion}
- ps4 touchpad cannot support? vita touchscreen
- [bug] Left Stick X Axis stops working when controller connected HOT 1
- L2 and R2 no use HOT 3
- ds34vita earphone
- Swapping L/R1 and L/R2 HOT 3
- ds34vita does not pair to PS Vita HOT 4
- reVita crashes when using ds34vita HOT 2
- PS Button not behaving accurately (Double press) HOT 1
- How to disable the onboard stick when controller connected
- using DS4 touchpad crashes PSP games
- Phantasy star nova l1,12 have combind same with r1,r2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ds4vita.