/*
    Copyright (C) 2019, The AROS Development Team. All rights reserved.
*/

#include "x11_keytable.h"

#ifndef KEYTABLE_NAME
#define KEYTABLE_NAME italian_keytable
#endif

static struct _keytable KEYTABLE_NAME[] =
{
    {XK_Control_L,      0x00, 0x63 }, /* left CTRL = control */
    {XK_Multi_key,      0x00, 0x63 }, /* right CTRL = control */
    {XK_Super_L,        0x00, 0x66 },   /* left win = LAMIGA */
    {XK_Super_R,        0x00, 0x67 },   /* right win = RAMIGA */
    {XK_Meta_L,         0x00, 0x64 }, /* left alt = LALT */
    {XK_Mode_switch,    0x00, 0x65 }, /* right alt = RALT */

    /* Key left of S */
    {XK_A,              0x00, 0x20 },
    {XK_a,              0x00, 0x20 },

    /* Key right of N */
    {XK_M,              0x00, 0x37 },
    {XK_m,              0x00, 0x37 },

    /* Key right of TAB */
    {XK_Q,              0x00, 0x10 },
    {XK_q,              0x00, 0x10 },

    /* Key between T and U */
    {XK_y,              0x00, 0x15 },
    {XK_Y,              0x00, 0x15 },

    /* Key left of E */
    {XK_W,              0x00, 0x11 },
    {XK_w,              0x00, 0x11 },

    /* Key left of X */
    {XK_z,              0x00, 0x31 },
    {XK_Z,              0x00, 0x31 },
    
    /* Key left of 1 */
    {XK_backslash,      0x00, 0x00 },

    /* Keys right of 0 */
    {XK_apostrophe,     0x00, 0x0B },
    {XK_Igrave,         0x00, 0x0C },
    {XK_igrave,         0x00, 0x0C },

    /* Keys right of P */
    {XK_Egrave,         0x00, 0x1A },
    {XK_egrave,         0x00, 0x1A },
    {XK_plus,           0x00, 0x1B }, /* + */

    /* Keys right of L */
    {XK_Ograve,         0x00, 0x29 },
    {XK_ograve,         0x00, 0x29 },
    {XK_Agrave,         0x00, 0x2A },
    {XK_agrave,         0x00, 0x2A },
    {XK_Ugrave,         0x00, 0x2B }, /* Third key right of L might not be present */
    {XK_ugrave,         0x00, 0x2B },

    /* Key right of shift and 2nd left of X (might not be present) */
    {XK_less,           0x00, 0x30 }, /* < */

    /* Keys 2nd right of N (= usually right of M) */
    {XK_comma,          0x00, 0x38 },
    {XK_period,         0x00, 0x39 },
    {XK_minus,          0x00, 0x3A },

    {0, 0, -1 }
};
