gpt4 book ai didi

java - VK在Java的KeyEvent类中代表什么?

转载 作者:行者123 更新时间:2023-12-05 09:29:56 24 4
gpt4 key购买 nike

我想知道,VK在java中代表什么?

下面是一个实例代码,目的是让您简要了解它的使用位置:

public void keyPressed(KeyEvent e){ if (e.getKeyCode == KeyEvent.VK_UP) {...}}

最佳答案

这是“虚拟 key ”的简写:

KeyEvent:

Virtual key codes are used to report which keyboard key has been pressed, rather than a character generated by the combination of one or more keystrokes (such as "A", which comes from shift and "a").

关于java - VK在Java的KeyEvent类中代表什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70191537/

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