mirror of https://github.com/RPCS3/rpcs3.git
Compare commits
3 Commits
9b6d3a11be
...
cc310cd282
Author | SHA1 | Date |
---|---|---|
Megamouse | cc310cd282 | |
capriots | 66eae05e75 | |
Megamouse | 851b959b7f |
|
@ -121,6 +121,7 @@ void AtracXdecDecoder::alloc_avcodec()
|
|||
|
||||
// Allows FFmpeg to output directly into guest memory
|
||||
ctx->opaque = this;
|
||||
ctx->thread_type = FF_THREAD_SLICE; // Silences a warning by FFmpeg about requesting frame threading with a custom get_buffer2(). Default is FF_THREAD_FRAME & FF_THREAD_SLICE
|
||||
ctx->get_buffer2 = [](AVCodecContext* s, AVFrame* frame, int /*flags*/) -> int
|
||||
{
|
||||
for (s32 i = 0; i < frame->ch_layout.nb_channels; i++)
|
||||
|
|
|
@ -709,6 +709,13 @@ void PadHandlerBase::get_mapping(const pad_ensemble& binding)
|
|||
pad->m_sticks[1].m_value = 255 - ly;
|
||||
pad->m_sticks[2].m_value = rx;
|
||||
pad->m_sticks[3].m_value = 255 - ry;
|
||||
|
||||
#ifdef _WIN32
|
||||
if (m_type == pad_handler::xinput)
|
||||
{
|
||||
input_log.error("LT=%d, LT+=%d, LT-=%d, RY=%d", button_values[16], button_values[18], button_values[19], pad->m_sticks[3].m_value);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue