private unsafe void SetCallbacks(Wrapper wrapper) { _environmentCallback = wrapper.RetroEnvironmentCallback; _videoRefreshCallback = wrapper.RetroVideoRefreshCallback; _audioSampleCallback = wrapper.RetroAudioSampleCallback; _audioSampleBatchCallback = wrapper.RetroAudioSampleBatchCallback; _inputPollCallback = wrapper.RetroInputPollCallback; _inputStateCallback = wrapper.RetroInputStateCallback; _logPrintfCallback = wrapper.RetroLogPrintf; _perfGetTimeUsecCallback = wrapper.RetroPerfGetTimeUsec; _perfGetCounterCallback = wrapper.RetroPerfGetCounter; _getCPUFeaturesCallback = wrapper.RetroGetCPUFeatures; _perfLogCallback = wrapper.RetroPerfLog; _perfRegisterCallback = wrapper.RetroPerfRegister; _perfStartCallback = wrapper.RetroPerfStart; _perfStopCallback = wrapper.RetroPerfStop; }
public static extern void retro_set_input_poll(retro_input_poll_t cb);
public static extern void retro_set_input_poll(retro_input_poll_t callback);
public void SetInputPoll(Action inputPollCallback) { _inputPollCallback = new retro_input_poll_t(inputPollCallback); _setInputPoll(_inputPollCallback); }