|
stdout.read_char() will only read when the terminal is focused. It can't read keyin when arrayfire windows is focused. Since arrayfire window could be closed by pressing ESC, it should be able to receive keyin. However, I can't find any clue to do so. Any help? |
Answered by
3togo
Oct 17, 2022
Replies: 2 comments 11 replies
|
I guess there are several possibilities:
|
9 replies
|
As converting |
2 replies
Answer selected by
3togo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As converting
Array<u8>array to sdl2::surface is a GPU to CPU process, it is not desirable in terms of performance.To ensure that it is a GPU to GPU conversion,
Array<u8>needs to be converted to sdl2::texture directly. But, how?