【问题标题】:What does the z component of ncurses mouse events represent?ncurses鼠标事件的z分量代表什么?
【发布时间】:2022-01-27 16:16:10
【问题描述】:

来自 ncurses.h

typedef struct
{
    short id;       /* ID to distinguish multiple devices */
    int x, y, z;    /* event coordinates (character-cell) */
    mmask_t bstate; /* button state bits */
}
MEVENT;

z 坐标代表什么?

【问题讨论】:

  • 我不知道如何使用 ncurses,但我想它是为未来的扩展保留的。你试过了吗?

标签: c linux ncurses


【解决方案1】:

来自the curs_mouse man page

目前未使用事件结构中的 z 成员。这是 用于触摸屏(可能是压力 敏感)或使用 3D 鼠标/轨迹球/电动手套。

此外,如果您在lib_mouse.c in the ncurses source code 中搜索->z.z,您会发现它只设置为零。

【讨论】:

    猜你喜欢
    • 2011-11-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-11-08
    相关资源
    最近更新 更多