Git Product home page Git Product logo

Comments (8)

RoCorbera avatar RoCorbera commented on August 17, 2024

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.

llamitaiot avatar llamitaiot commented on August 17, 2024

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.

llamitaiot avatar llamitaiot commented on August 17, 2024

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.

RoCorbera avatar RoCorbera commented on August 17, 2024

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.

CornN64 avatar CornN64 commented on August 17, 2024

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.

djtrance avatar djtrance commented on August 17, 2024

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.

CornN64 avatar CornN64 commented on August 17, 2024

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.

paulaxinte avatar paulaxinte commented on August 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.