From de50037fd577a40186423bbc4ea799852127e600 Mon Sep 17 00:00:00 2001 From: Squid Date: Sun, 26 Feb 2017 19:18:59 +0000 Subject: [PATCH] Fix SHIFT and CONTROL keys pausing games. --- cores/bbc/rtl/keyboard.v | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cores/bbc/rtl/keyboard.v b/cores/bbc/rtl/keyboard.v index b36c0a3..27b1d3e 100644 --- a/cores/bbc/rtl/keyboard.v +++ b/cores/bbc/rtl/keyboard.v @@ -112,9 +112,8 @@ end // Column counts automatically when AUTOSCAN is enabled, otherwise // value is loaded from external input -wire [7:0] k = keys[col[3:0]]; -// use a bitwise reduction to check if any bit in k is set. -assign INT = |k; +wire [7:0] k = keys[col]; +assign INT = k[7] | k[6] | k[5] | k[4] | k[3] | k[2] | k[1]; assign KEYPRESS = AUTOSCAN === 1'b0 ? k[ROW] : 1'b0; // Decode PS/2 data