Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reading arrays larger than 255 elements #311

Closed
HemuManju opened this issue Dec 11, 2023 · 5 comments
Closed

Reading arrays larger than 255 elements #311

HemuManju opened this issue Dec 11, 2023 · 5 comments

Comments

@HemuManju
Copy link

Hi Team,

I hope this message finds you well. I've encountered an issue while reading the sim/joystick/joystick_button_values through XPC. Currently, the array size exceeds 255 elements.

From my understanding, XPC imposes a limit of 255 on the data read through DREFs. Given this limitation, I'm exploring potential solutions or workarounds to access the complete joystick button array.

Is there a known method or configuration to increase this limit imposed by XPC?

Any insights or guidance on this matter would be greatly appreciated. Thank you in advance for your time and assistance.

@AlvaroSierra
Copy link

Hi, I recommend you have a look at #277 which looks further into array DREFs.

@shiroinekotfs
Copy link

If this issue is solved, should it be closed?

@HemuManju
Copy link
Author

I am still unable to read array values larger than 255. I did a little digging and found that MessageHandlers.cpp limits all arrays to 255 elements. Is there a reason for this? And how can I change this limit? Any help is greatly appreciated.

@AlvaroSierra
Copy link

Related to #146

@HemuManju
Copy link
Author

PR #270 address this issue. I am able to read an array more than 255 elements. I am closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants