简体   繁体   English

Qt(necessitas)+ SDL + Android

[英]Qt(necessitas) + SDL + Android

I've written an application ( an open source ROV controller ) in Qt that uses SDL for joystick support on Windows and OSX and I'd like to port it to Android. 我已经用Qt编写了一个应用程序( 一个开放源代码的ROV控制器 ),该应用程序使用SDL在Windows和OSX上提供了操纵杆支持,我想将其移植到Android。 My only issue is that I need to get USB joystick support in Android. 我唯一的问题是我需要在Android中获得USB游戏杆支持。 Has anybody gotten SDL to work with Qt on Android ? 有人让SDL 在Android上使用Qt吗? If so, how did you do it? 如果是这样,您是如何做到的?

I have gotten several somewhat complex programs based on the SDL 1.2 library to work on Android. 我已经获得了一些基于SDL 1.2库的复杂程序,可以在Android上运行。 The code base for that is here - 的代码库在这里-

http://github.com/pelya/commandergenius http://github.com/pelya/commandergenius

Pelya's port of SDL 1.2 to Android has support for joystick controls (which it can mimic on-screen, and which you can extend). Pelya的SDL 1.2到Android的端口支持操纵杆控件(它可以在屏幕上模拟,并且可以扩展)。 I have done experimental ports that use the joystick, although none of my releases yet have utilized that feature. 我已经完成了使用操纵杆的实验端口,尽管我的所有发行版都没有使用该功能。

As far as qt, the qt lighthouse project for Android is codenamed necessitas, and is located here http://sourceforge.net/p/necessitas/home/necessitas . 就qt而言,Android的qt灯塔项目的代号为necessitas,位于http://sourceforge.net/p/necessitas/home/necessitas I don't know firsthand how far along their port is, but their project is your best bet. 我不知道他们的港口有多远,但是他们的项目是最好的选择。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM