MiSTer-devel / NES_MiSTer

GNU General Public License v3.0
174 stars 75 forks source link

Add Keyboard support #336

Closed greyrogue closed 1 year ago

greyrogue commented 1 year ago
        'hX75: btn_up    <= pressed;
        'hX72: btn_down  <= pressed;
        'hX6B: btn_left  <= pressed;
        'hX74: btn_right <= pressed;
        'hX6C: btn_cl    <= pressed; // clr home
        'hX70: btn_in    <= pressed; // ins
        'hX71: btn_de    <= pressed; // del

        'hX05: btn_f1    <= pressed; // 1
        'hX06: btn_f2    <= pressed; // 2
        'hX04: btn_f3    <= pressed; // 3
        'hX0C: btn_f4    <= pressed; // 4
        'hX03: btn_f5    <= pressed; // 5
        'hX0B: btn_f6    <= pressed; // 6
        'hX83: btn_f7    <= pressed; // 7
        'hX0A: btn_f8    <= pressed; // 8

        'hX16: btn_1     <= pressed; // 1
        'hX1E: btn_2     <= pressed; // 2
        'hX26: btn_3     <= pressed; // 3
        'hX25: btn_4     <= pressed; // 4
        'hX2E: btn_5     <= pressed; // 5
        'hX36: btn_6     <= pressed; // 6
        'hX3D: btn_7     <= pressed; // 7
        'hX3E: btn_8     <= pressed; // 8
        'hX46: btn_9     <= pressed; // 9
        'hX45: btn_0     <= pressed; // 0
        'hX4E: btn_ds    <= pressed; // -
        'hX55: btn_ca    <= pressed; // = => ^
        'hX5D: btn_ye    <= pressed; // \ => yen
        'hX66: btn_st    <= pressed; // <- => stop

        'hX0D: btn_es    <= pressed; // tab => esc
        'hX15: btn_q     <= pressed; // q
        'hX1D: btn_w     <= pressed; // w
        'hX24: btn_e     <= pressed; // e
        'hX2D: btn_r     <= pressed; // r
        'hX2C: btn_t     <= pressed; // t
        'hX35: btn_y     <= pressed; // y
        'hX3C: btn_u     <= pressed; // u
        'hX43: btn_i     <= pressed; // i
        'hX44: btn_o     <= pressed; // o
        'hX4D: btn_p     <= pressed; // p
        'hX76: btn_at    <= pressed; // esc => @ not positional
        'hX54: btn_fs    <= pressed; // [ => /
        'hX5B: btn_rb    <= pressed; // ] => ] not positional

        'hX58: btn_ct    <= pressed; // caps => ctr
        'hX1C: btn_a     <= pressed; // a
        'hX1B: btn_s     <= pressed; // s
        'hX23: btn_d     <= pressed; // d
        'hX2B: btn_f     <= pressed; // f
        'hX34: btn_g     <= pressed; // g
        'hX33: btn_h     <= pressed; // h
        'hX3B: btn_j     <= pressed; // j
        'hX42: btn_k     <= pressed; // k
        'hX4B: btn_l     <= pressed; // l
        'hX4C: btn_se    <= pressed; // ;
        'hX52: btn_cn    <= pressed; // ' => :
        'hX14: btn_ka    <= pressed; // lctrl => katana not positional
        'hX5A: btn_rt    <= pressed; // enter (ret)

        'hX12: btn_ls    <= pressed; // lshift
        'hX1A: btn_z     <= pressed; // z
        'hX22: btn_x     <= pressed; // x
        'hX21: btn_c     <= pressed; // c
        'hX2A: btn_v     <= pressed; // v
        'hX32: btn_b     <= pressed; // b
        'hX31: btn_n     <= pressed; // n
        'hX3A: btn_m     <= pressed; // m
        'hX41: btn_co    <= pressed; // ,
        'hX49: btn_pe    <= pressed; // .
        'hx4A: btn_fs    <= pressed; // /
        'hX0E: btn_un    <= pressed; // ` => underscore not positional
        'hX59: btn_rs    <= pressed; // rshift

        'hX11: btn_gr    <= pressed; // lalt => graph
        'hX29: btn_sp    <= pressed; // space
sorgelig commented 1 year ago

Now we have to move NES core to Computer cores :)