Subversion Repositories HelenOS

Rev

Rev 4348 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4348 Rev 4691
Line 25... Line 25...
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
 */
27
 */
28
 
28
 
29
/** @addtogroup kbd
29
/** @addtogroup kbd
30
 * @brief   US QWERTY leyout.
30
 * @brief   US QWERTY layout.
31
 * @{
31
 * @{
32
 */
32
 */
33
 
33
 
34
#include <kbd.h>
34
#include <kbd.h>
35
#include <kbd/kbd.h>
35
#include <io/console.h>
36
#include <kbd/keycode.h>
36
#include <io/keycode.h>
37
#include <layout.h>
37
#include <layout.h>
38
 
38
 
39
static void layout_reset(void);
39
static void layout_reset(void);
40
static wchar_t layout_parse_ev(kbd_event_t *ev);
40
static wchar_t layout_parse_ev(console_event_t *ev);
41
 
41
 
42
layout_op_t us_qwerty_op = {
42
layout_op_t us_qwerty_op = {
43
    layout_reset,
43
    layout_reset,
44
    layout_parse_ev
44
    layout_parse_ev
45
};
45
};
Line 201... Line 201...
201
 
201
 
202
static void layout_reset(void)
202
static void layout_reset(void)
203
{
203
{
204
}
204
}
205
 
205
 
206
static wchar_t layout_parse_ev(kbd_event_t *ev)
206
static wchar_t layout_parse_ev(console_event_t *ev)
207
{
207
{
208
    wchar_t c;
208
    wchar_t c;
209
 
209
 
210
    /* Produce no characters when Ctrl or Alt is pressed. */
210
    /* Produce no characters when Ctrl or Alt is pressed. */
211
    if ((ev->mods & (KM_CTRL | KM_ALT)) != 0)
211
    if ((ev->mods & (KM_CTRL | KM_ALT)) != 0)