Skip to content

Conversation

SergioMartin86
Copy link
Contributor

@SergioMartin86 SergioMartin86 commented Jan 28, 2025

On request by Alyosha, added input poll callback for QuickerNES

For context, see: https://tasvideos.org/Forum/Posts/534219

LUA script for testing:

function poll_handler()
    print('hello')
end

event.oninputpoll(poll_handler) -- registers callback

-- This template lives at `.../Lua/.template.lua`.
while true do
	-- Code here will run once when the script is loaded, then after each emulated frame.
	emu.frameadvance();
end

Check if completed:

@SergioMartin86 SergioMartin86 marked this pull request as ready for review January 28, 2025 18:12
public abstract void qn_set_tracecb(IntPtr e, TraceCallback cb);

[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public delegate void input_cb();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this include the index? See #3233.

@YoshiRulz YoshiRulz linked an issue Feb 3, 2025 that may be closed by this pull request
@YoshiRulz YoshiRulz added Request: Feature/Enhancement For feature requests or possible improvements Core: QuickNes (Alt.) Nintendo Entertainment System (NES) / Famicom / Famicom Disk System (FDS) core labels Sep 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Core: QuickNes (Alt.) Nintendo Entertainment System (NES) / Famicom / Famicom Disk System (FDS) core Request: Feature/Enhancement For feature requests or possible improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants