gpt4 book ai didi

c - csfml 已弃用鼠标滚轮事件

转载 作者:行者123 更新时间:2023-11-30 16:05:51 24 4
gpt4 key购买 nike

基本上我一直在 csfml 中编程,当我尝试编译代码时,它会给我两个警告,第一个警告是:“sfMouseWheelEvent”已弃用 [-Wdeprecated-declarations],第二个警告是:已弃用 [- W已弃用的声明]。

typedef struct CSFML_DEPRECATED 我一直在尝试执行该程序,但它给了我一个没有显示并立即停止 react 的窗口。

最佳答案

如果有帮助:https://www.sfml-dev.org/changelog.php#sfml-2.3

Deprecated API

sf::Event::MouseWheelEvent: This event is deprecated and potentially inaccurate. Use MouseWheelScrollEvent instead.

关于c - csfml 已弃用鼠标滚轮事件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60149449/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com