Comments (8)
You should have in mind that Esp_8_bit has a HID stack for classic bluetooth.
BLE and Classic Bluetooth are not compatible with each other.
from esp_8_bit.
Ok, I've been trying to replace the his stuff. But I can't find where in the code I can submit a pressed key to the emulator.
For instance, could you tell me where I can add a line so that as soon a a game boots a start button gets pressed?
from esp_8_bit.
Or maybe a simple gist to make an esp connect as a keyboard using that Bluetooth classic stack. I'd love to contribute to this project, but I need a little help to get started.
from esp_8_bit.
I'm not the author of this project. But as far as I can see, from the code, you should work with gui_hid(...) function which in turn handles Keyboard HID events for the console menu (that one used to change games) and also sends controller events to the current emulator by calling _emu->key(...).
Everything works as HID events from a bluetooth keyboard, including which is keycode 40 (same as pressing ).
I hope it helps you!
from esp_8_bit.
I forked this and added support for a hard wired NES controller which allows you to access the file tree with LEFT+SELECT.
It means that you need to solder in 5 leads from a classic NES controller to make it work thought...
If I get the time I might add in a second controller as well (unless someone beats me to it), it should be simple enough to extend it.
from esp_8_bit.
hi, I'm trying to add bluetooth joystick support , I have a universar joystick techmaster, tm.stk7005, when I connect the joystick to the emulator it is enter to the function hid(InputDevice* d, const uint8_t* data, int len)
in the switch the device enter here
case 0x07: //test joystick bluetooth tecmaster tm.stk7005
{
printf("bluetooth tecmaster -> report: %02X\n",h[2]);
int sizeB = (h[2] >> 4) + 1;
int addrB = (h[3] << 8) | h[4]; // low bytes of address
h += 5;
int idB = (h[4] << 8) | h[5];
printf("tecmaster %04X:%02X read id is %04X\n",sizeB,addrB,idB);
dump_report(data,len);
break;
}
but I don't know how to extract the data from the joystick. I can see how the len change when I move the stick or I press some buttons.
can any help me?
from esp_8_bit.
Here is something fresh out of the press...
https://github.com/darthcloud/BlueRetro/tree/v0.2
I have not tested it myself but looks useful to those who wish to keep things wireless :)
from esp_8_bit.
Is there any possibility to integrate wireless connection between 2 esp32 for the emulator via ESP-NOW? If yes, where do I need to enter the code I've written for receiving input?
from esp_8_bit.
Related Issues (20)
- Savestate?
- Fast Forward in rom menu list?
- early 80's arcade machines HOT 1
- Vertical sync HOT 5
- frequency
- Esp32-cam bootlooping with error HOT 2
- How to set proper CLOCK frequency? HOT 4
- Question about Vertical Sync & UART HOT 1
- Problem with smsplus emulation
- Not issue - just a question about IR input or wired input
- What about using this library for BT input?
- The BT keyboard stops working after entering some chars
- Connecting Bluetooth controllers HOT 4
- DAC signal generation - voltage offset HOT 1
- No issue - question about composite video HOT 4
- a few issues. HOT 1
- SD-Card support seems not working? HOT 1
- SD-Card isn't working... HOT 4
- Is it possible to use a second DAC channel for audio output or is this feature not supported in hardware?
- Small glitch and working Apple A1314 HOT 1
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 esp_8_bit.