What Happens When I Press a Key? - Computerphile

  Рет қаралды 242,278

Computerphile

Computerphile

5 жыл бұрын

Just what happens when you hit a key on a computer's keyboard? Dr Steve Bagley takes us on the keypress' journey....
Watch Part 2 Now: • How Software Deals wit...
Building the BBC Micro: • Building the BBC Micro...
Choosing a Password: • How to Choose a Passwo...
/ computerphile
/ computer_phile
This video was filmed and edited by Sean Riley.
Computer Science at the University of Nottingham: bit.ly/nottscomputer
Computerphile is a sister project to Brady Haran's Numberphile. More at www.bradyharan.com

Пікірлер: 354
@stefanamg63
@stefanamg63 5 жыл бұрын
Always nice to see a seemingly simple system explained properly to uncover a hidden complexity I've never given much thought to before. Fascinating video.
@AdrinaRoM
@AdrinaRoM 5 жыл бұрын
"I like my keyboards soft and mushy" quote of the day :D
@biehdc
@biehdc 5 жыл бұрын
it goes through tons of layers of abstractions until it reaches some bad electron based application
@adfaklsdjf
@adfaklsdjf 5 жыл бұрын
This is the real story.
@npc6924
@npc6924 5 жыл бұрын
Or when I'm testing my program, a poorly written SDL application
@ThatBrubakerFellow
@ThatBrubakerFellow 3 жыл бұрын
🤮
@aapeli4824
@aapeli4824 5 жыл бұрын
"I like my keyboards soft and mushy" *laughs in mechanical*
@avi8aviate
@avi8aviate 5 жыл бұрын
BHURGVFDI SHOUIE UIEFSL BEVI BUSIOEV VSBUYEOI HUEVSJKD Your laugh in mechanical.
@avi8aviate
@avi8aviate 4 жыл бұрын
@Red Dunkey ygudhhbiuhvjkfkyuhrgnkvhjbikrtuhjgesguhyurhgbjvhgfbvsuyehbnxeruyvhbsiyurghbnvuihsgbxbenuyrghubdfiyugshb
@avi8aviate
@avi8aviate 4 жыл бұрын
@Red Dunkey uygjvj
@Orinslayer
@Orinslayer 3 жыл бұрын
I find the clickety-clacking to be highly therapeutic.
@kirishima4430
@kirishima4430 3 жыл бұрын
This is just superb, I have been researching "which keys are which notes on a piano?" for a while now, and I think this has helped. You ever tried - Penaycer Rudimentary Preponderance - (just google it ) ? It is an awesome one off guide for discovering how to play the piano easily minus the normal expense. Ive heard some unbelievable things about it and my colleague got amazing results with it.
@lawrencedoliveiro9104
@lawrencedoliveiro9104 5 жыл бұрын
10:02 And one nice thing about scan codes is they don’t distinguish between modifier and non-modifier keys; it’s just “key «n» has been pressed” and “key «n» has been released”, it’s up to the software to decide if key «n» is a modifier key or not. And you can distinguish between e.g. left-shift and right-shift (they have different scan codes), and implement other fun custom behaviours.
@floxbr9350
@floxbr9350 2 жыл бұрын
At least for USB: yes, they do. The state of the modifier keys is encoded in a single byte (which indeed allows a distinction between left-shift and right-shift), then other keys are transmitted individually. Sure, the software can decide what to do with that information, but the modifier keys do play a special role from the hardware perspective.
@PavitraGolchha
@PavitraGolchha 4 ай бұрын
​​@@floxbr9350yeah i learnt that in ben eater's video about usb
@noferblatz
@noferblatz 5 жыл бұрын
One thing not mentioned is the "de-bouncing" circuit. As switches, the keyboard switches tend to "bounce" or "ring". One keypress produced not just one, but multiple key-down and key-up events. The "de-bouncer" ensures that these are picked up by the machine as a single press.
@andljoy
@andljoy 5 жыл бұрын
noferblatz you can also fix this with many many diodes (one for each key) , no ghosting then :)
@Thanatos2996
@Thanatos2996 5 жыл бұрын
Andrew Joy you can use diodes to debounce? I've used caps, but never heard of diodes.
@bvbk007
@bvbk007 5 жыл бұрын
Diodes can't be used for debouncing, usually. I think Andrew is mistaken. Ghosting and debouncing are independent of each other.
@raykent3211
@raykent3211 5 жыл бұрын
bvbk007 I agree with you. Might be worth mentioning software debouncing, that I've used on arduino projects. No extra components, the software does a very crude simulation of an RC network response. Maybe called a boxcar filter?
@Thanatos2996
@Thanatos2996 5 жыл бұрын
bvbk007 ok, just making sure I didn't fall asleep in Electronics or something.
@andljoy
@andljoy 5 жыл бұрын
It depends on the interface, XT, AT and PS/2 (PS/2 and AT are the same with just a new connector ) are interrupts , USB uses polling. PS/2 AT etc The computer does nothing , the keyboard controller polls the matrix and sends hardware interrupts to the CPU For USB the same thing happens but the keyboard does not send an interrupt, it holds the keys in a buffer till the computer polls it for key presses. Language does not change the scan code set ! AT PS/2 USB ect are ALL scan code set 2 , XT is scan code set 1 ( for some reason) and most terminals and pre PC computers mainframes , serial terminals etc use scancode set 3
@Dracounius
@Dracounius 5 жыл бұрын
USB standards specifies a scan code for USB keyboards, it does not use set 2 (AT). Or if does it is non-compliant with the USB standard for keyboards.
@andljoy
@andljoy 5 жыл бұрын
Yes your correct. But they use the same codes in the background so 2c is Z in USB and in Set 2 so its short hand.
@AlexAegisOfficial
@AlexAegisOfficial 5 жыл бұрын
\[T]/
@0LoneTech
@0LoneTech 5 жыл бұрын
USB is most certainly not using set 2 - for the reason why, look up what the scancode is for the arrow keys, which have a prefix for set 1 compatibility, or the Pause key which is 7 bytes long. USB keycodes are in alphabetic order and Z in particular is 1D (see HID usage tables, section 10 keyboard). Your firmware might be translating it for legacy OS support, however. Set 3 was more logical in that it used a single bit for press/release and one byte for each event. Also, the polling in USB is performed by the host controller, not the CPU, so we still have an interrupt for when things have changed. There are also buffers in both keyboards and port controllers for PS/2, AT etc, but the CPU typically has to handle them byte by byte.
@misterhat5823
@misterhat5823 5 жыл бұрын
I agree. This video is quite oversimplified and erroneous at times.
@XHappyKillerX
@XHappyKillerX 5 жыл бұрын
It would be really cool and suit your channel if you made a video about Docker and the differences on how Docker and a full virtual machine realize the virtualization! Love your channel!
@frognik79
@frognik79 5 жыл бұрын
Back in the days of windows 95/98 and XP I used ports 0x60 and 0x64 to communicate with the keyboard controller directly and insert characters into the keyboards output buffer which were then read by windows as normal key presses. This let me get past several games anti cheat / botting software.
@yourmum69_420
@yourmum69_420 2 жыл бұрын
why would you want to cheat?
@mikeklaene4359
@mikeklaene4359 5 жыл бұрын
Years ago I used to program on a desktop system that used Hall Effect keys. The keyboard was specifically designed for data entry. It was made in Utica, NY and was originally called a Cogar System 4. Later Singer bought the company and called it a Singer 1501. When Singer was bought by ICL it became the ICL 1501. A VERY nifty system for its day.
@jiffylou98
@jiffylou98 5 жыл бұрын
Great video! I remember opening up my PSP and wondering how the circuit board worked and how it could tell which button was being pushed when they were both connected
@adfaklsdjf
@adfaklsdjf 5 жыл бұрын
I really appreciated the graphic diagrams.. very well done. Thanks.
@SteelSkin667
@SteelSkin667 5 жыл бұрын
Dr. Bagley's shirt needs some texture filtering.
@14rs
@14rs 3 жыл бұрын
Some ray tracing
@Thanatos2996
@Thanatos2996 5 жыл бұрын
PS/2 interrupts, USB and Bluetooth do not. With the newer ones, the controllers have a buffer which the OS polls. Also, insulting the IBM model M is a bold strategy Cotton.
@lawrencedoliveiro9104
@lawrencedoliveiro9104 5 жыл бұрын
Newton’s Third Law, action = reaction; contemplate the Zen of physics: when you a press a key, the key presses back.
@Pedritox0953
@Pedritox0953 4 жыл бұрын
Excellent videos Steve!!
@pengowando8325
@pengowando8325 5 жыл бұрын
I dig how the game Steve thinks up off the top of his head is Quake. Right on mate
@billaddison82
@billaddison82 5 жыл бұрын
Nice paper man, very nice touch!
@benjaminwilson9007
@benjaminwilson9007 5 жыл бұрын
This explains why when accessing button presses there are the methods GetKeyDown(Key), GetKeyUp(Key), and GetKey(Key). Thank you. And also if anybody knows about Scratch by MIT, their language was not great with those functions. It was very frustrating. Also I prefer quieter keyboards because I typically make videos about what typing and the noise in the video is annoying. But if I'm playing League or something I do like to hear that I have indeed pressed a key.
@singularity1130
@singularity1130 5 жыл бұрын
Do touch sensors next!!!
@vylbird8014
@vylbird8014 5 жыл бұрын
The M is the epitome of keyboard perfection. There's a reason it is so remembered: It saw satisfying, comfortable, accurate, and near-indestructible. Very few keyboards achieve that level of quality, and those that do achieve it today are designed specifically in imitation of the M's design and always compared to it.
@andljoy
@andljoy 5 жыл бұрын
No way , model F any day !
@tyrgoossens
@tyrgoossens 5 жыл бұрын
The earlier IBM beamspring is probably the best keyboard mechanism ever made. Unfortunately it comes with some real drawbacks like its huge size and complexity of the capacitive sensing circuitry used.
@andljoy
@andljoy 5 жыл бұрын
Yeh but they are amazing! I love mine. F uses capacitive sensing too but the controller is less fussy about dust etc. Thats why beamsprings come with contamination shields . Or did, they have all rotten away now.
@StevePinkham
@StevePinkham 5 жыл бұрын
Not sure about epitome, but certainly a classic. Have 3 model M keyboards that I used for many years, but now use WASD Code V2 keyboards, with Cherry MX blue switches at home and clears at the office. I like them all better than my M keyboards for layout and feel.
@DotBowder
@DotBowder 5 жыл бұрын
You should make a series out of these, from the keyboard, through the usb/ps2 bus, to the driver, then the os, display driver, monitor, etc. The whole stack from input to output. - or maybe just talk about each piece of the stack for an episode. It's very computerphile centric.
@Yazan_Majdalawi
@Yazan_Majdalawi 8 ай бұрын
I was expecting something like this when I first saw the title, I'm really disappointed :(
@rajpatel5846
@rajpatel5846 5 жыл бұрын
You guys make awesome knowledge videos
@Syncromatic
@Syncromatic 5 жыл бұрын
Video comes up just as I'm doing an assignment that uses interrupts, instruction pointers and a like. On one hand, it's neat timing. On the other, it's the last thing I wanna see xD
@littlemikey46
@littlemikey46 5 жыл бұрын
How can a computer expert not like the model M? It's perfect!
@RaymondHng
@RaymondHng 5 жыл бұрын
I guess he's not a touch typist. I'm typing this on a Model M.
@YellowToad
@YellowToad 3 жыл бұрын
@@RaymondHng me too
@webchimp
@webchimp 5 жыл бұрын
"And this is basically the brains of the keyboard..." That's just some PCB track with gaps in, you've already looks at "the brains of the keyboard" on the other side.
@0LoneTech
@0LoneTech 5 жыл бұрын
Yep, those were the feelers.
@jareknowak8712
@jareknowak8712 5 жыл бұрын
I pushed "H" on keyboard, but nothing happened..... :( Does computer have to be turned on?
@jeremyelliot4831
@jeremyelliot4831 5 жыл бұрын
No, computer doesn't need to be on. It sounds like your keyboard is not working. Have you tried restarting your keyboard?
@jareknowak8712
@jareknowak8712 5 жыл бұрын
Jeremy Elliot Yes, i tried, with torch, as always. Did not help. Maybe it needs new oil and spark plugs?
@joedd215
@joedd215 5 жыл бұрын
We'll it does need the voltage to apply to the rows somehow. Try plugging it into a battery
@TruthNerds
@TruthNerds 5 жыл бұрын
This is normal. You have a French keyboard, and the "H" is silent in French. HTH. HAND.
@GaneshMKarhale
@GaneshMKarhale 4 жыл бұрын
No, you need to have common sense.
@woopygoman
@woopygoman 5 жыл бұрын
Can you please make a video about the history of focus stealing (foreground window and keyboard cursor) in operating systems and web browsers? It's quite an annoying issue in computing and still hasn't been addressed after decades!
@terrylick5908
@terrylick5908 5 жыл бұрын
i will look for a link that shows you. thankyou
@jjbailey01
@jjbailey01 4 жыл бұрын
What I want to know is what happens when I press the key?
@mannyknowles
@mannyknowles 5 жыл бұрын
Questions about the fanfold greenbar paper used in so many of these videos. Why/how do they have so much of it? Are they using up leftover/surplus inventory from a bygone era? Are there still dot matrix printers in use at the university? I'm dying to know.
@SecularMentat
@SecularMentat 5 жыл бұрын
I rather enjoy this episode. I like the basic breakdowns of computers into their electronic components.
@robinrai4973
@robinrai4973 5 жыл бұрын
After the model m comment *audible gasp*
@greob
@greob 5 жыл бұрын
What happens when I press multiple keys at the same time? How do keyboards handle many keys pressed at once? What determines the maximum number of simultaneous key presses? Is it only hardware, or is it also related to the kernel?
@paradonym
@paradonym 5 жыл бұрын
but everytime if you mention interrupts - it's nice to explain that modern PCs just have four to eight CPUs in - quickly explaining that multicore is just an array of actual CPUs (cores) in one part of the PC.
@Grundibular
@Grundibular 5 жыл бұрын
11:00 onwards was a bit lacking in detail. HOW does the hardware interrupt the CPU? What happens - memory registers? Special pins on the CPU...what EXACTLY?
@hydrochloricacid2146
@hydrochloricacid2146 5 жыл бұрын
Grundibular the implementation varies a bit depending on the cpu itself, but generally speaking, the CPU will have an interrupt controller. When the controller itself receives an interrupt from a device, such as a key press, it will force the processor to save its state and jump to a special part of memory called an interrupt vector table. This table will then tell the cpu where to jump next, into what is called an interrupt service routine, which actually handles the new data. Once this is done, the cpu resumes its previous work.
@RWoody1995
@RWoody1995 5 жыл бұрын
if its a USB keyboard it doesn't interrupt the CPU, PS/2 keyboards do but USB ones rely once again on polling. USB devices communicate by sending 1 frame of data every 1/1000th of a second, this is why many gaming keyboards; in search of a gimmick to make themselves appear advantageous over normal ones... claim an update rate of 1000hz, simply they just send data out on every USB frame, most keyboards update at 125hz because 125 is 1/8th of 1000 so they only need to update on every 8th frame.
@hydrochloricacid2146
@hydrochloricacid2146 5 жыл бұрын
@@RWoody1995 technically speaking, your software does receive USB interrupts. They just aren't generated by the keyboard. To get the load off the CPU, dedicated hardware polls the keyboard at regular intervals, and sends an interrupt to the system when a change occurs
@dudeabideth4428
@dudeabideth4428 3 жыл бұрын
I remember I was asked this in a interview. I got to the interrupt handler in three sentences or less . So is the key value delivered to the current application? What’s the api for it to read ? It’s reading it using an api like a file ?
@ThatBrubakerFellow
@ThatBrubakerFellow 3 жыл бұрын
Most new motherboards that I'm aware of don't have a true PS/2 port. It has a built-in adapter. USB I believe.
@k1ngjulien_
@k1ngjulien_ 5 жыл бұрын
As an r/MechanicalKeyboards member I am offended by his taste in keyboards....
@andljoy
@andljoy 5 жыл бұрын
Hey its dome over PCB is basically a realforce in all but name ! Myself i prefer a good beamspring, or some nice complicated alps. DT > Reddit :P
@charliethomson2789
@charliethomson2789 5 жыл бұрын
He said "I like my keyboard soft and mushy" and I was like no no no no NO NO NO
@k1ngjulien_
@k1ngjulien_ 5 жыл бұрын
quangluu96 I mean their videos are mostly software related so I get why he didn't go into too much detail.
@Chriva
@Chriva 5 жыл бұрын
I presume he does actual work on his machines. Mechanical keyboards are usually frowned upon by coders due to their disturbing nature :) Sit in a cubicle etc with ten other people around you having those things and you'll understand why they're so hated
@LIES666
@LIES666 5 жыл бұрын
You can get quiet mechanical keyswitches that are a decent compromise.
@AndresRodriguezGuapacha
@AndresRodriguezGuapacha 5 жыл бұрын
Off topic, but can you create a video about the SWARM robots project from Rolls Royce, the Universities of Nottingham and Harvard for car engine inspections?
@SecularMentat
@SecularMentat 5 жыл бұрын
Is an IRQ (interrupt request) done by hardware on the cpu?
@myusernameskitty1230
@myusernameskitty1230 2 жыл бұрын
dangit now i cant type how helpful this is
@DanielPianoful
@DanielPianoful 5 жыл бұрын
How dare you saying that about the beloved, eternal, all clacky Model M. Heresy!
@g3n3ricnam35
@g3n3ricnam35 2 жыл бұрын
Just near the end when you spoke about how the OS handles input, would it be possible (not practical) to leave a computer without resources by using keyboards?
@lewisharp6785
@lewisharp6785 5 жыл бұрын
This helped me decipher the difference between having a pathological or spiritual entity controlling the other end of the conversation when taking to an Artificially intellegent source and having the genuine thing. Thank you. I'm a little paranoid.
@lawrencedoliveiro9104
@lawrencedoliveiro9104 5 жыл бұрын
2:06 Or there would be, if your hardware implemented “n-key rollover”, which means it can distinguish every possible combination of keys being pressed at once. Not sure if current keyboard hardware actually supports that.
@SearchingForOurName
@SearchingForOurName 5 жыл бұрын
Amazing!
@lawrencedoliveiro9104
@lawrencedoliveiro9104 5 жыл бұрын
3:34 What about “buckling spring”, e.g. Cherry MX switches?
@Thermophobe
@Thermophobe 5 жыл бұрын
what a baller! got 2 imacs instead of two monitors and a mac
@ragnabob
@ragnabob 5 жыл бұрын
I lol'ed!!! :D
@TruthNerds
@TruthNerds 5 жыл бұрын
Maybe he's particularly decadent and uses one of them in target display mode for the other…
@JohnnyThousand605
@JohnnyThousand605 5 жыл бұрын
3:45 shots fired! XD
@vageeshprasadb6773
@vageeshprasadb6773 5 жыл бұрын
Awesome.
@Seryosin
@Seryosin 5 жыл бұрын
Press F to Pay Respects
@stopthephilosophicalzombie9017
@stopthephilosophicalzombie9017 5 жыл бұрын
I would have liked to see more on the software side.
@aletoledo1
@aletoledo1 5 жыл бұрын
I liked at the end how his example of a computer game was something from 25 years ago. I bet half the viewers are younger than that game.
@CorrosiveCitrus
@CorrosiveCitrus 5 жыл бұрын
he could have been refering to quake champions - or at least heard about it which is why quake was at the forefront of his mind :)
@CarterColeisInfamous
@CarterColeisInfamous 5 жыл бұрын
did you even talk about debouncing the button signal? i might have missed it
@LPrulzcrossover
@LPrulzcrossover Жыл бұрын
Hmm one question remains for me: Back in the days, why was I able to boost and steer right at the same time in Need for Speed but not able to boost and steer left (shift + arrow keys)? And why was my friend able to do it on his computer with his keyboard?
@ashleyjaytanna1953
@ashleyjaytanna1953 2 жыл бұрын
Somewhere out there when a key is pressed.... a paradise
@sethother8012
@sethother8012 4 жыл бұрын
At 1:20, he’s trying to begin explaining to us how the circuitry of the keyboard receives a signal, only to be interrupted and asked how many keys are possible to be pressed. Still laughing.
@arthurmarek8418
@arthurmarek8418 5 жыл бұрын
Lineprinter paper! Reminds me of computer science A level in the seventies...cool!
@johntitor3860
@johntitor3860 3 жыл бұрын
you don't need a microcontroller though, you can scan using a 555 timer and counter IC, then run the result of the matrix through various logic gates to create a binary code output, I guess this could get quite complex when dealing with a computer keyboard, I have only done it with a numeric keypad. Anyway I guess then what happens is the result updates a register, and whenever a key press is detected to have occurred, an interrupt is sent to the CPU periodically, the CPU then reads your keyboard register when it wants to.
@albertwilliams5532
@albertwilliams5532 3 жыл бұрын
Your are doing a great job! One recommendation, English subtitles please..couldn't get the accent right!
@Jonathansyoutube
@Jonathansyoutube 5 жыл бұрын
If I heard him correctly, 2 to the 100 keyboard combinations is a number greater than the number of atoms in the universe.
@x3ICEx
@x3ICEx 5 жыл бұрын
This is part 1, right? Did not even mention interrupts yet.
@Kersich86
@Kersich86 5 жыл бұрын
Appropriate quake reference is appropriate😀
@PeterNerlich
@PeterNerlich 5 жыл бұрын
How does the computer handle multiple keyboards? Can I tell it to ignore the numlock setting (and regard it as always on) for one specific keyboard only? Do I have to write my own Linux driver for that?
@videogamemusicandfunstuff4873
@videogamemusicandfunstuff4873 5 жыл бұрын
3:33 haha, I'm getting stressed just thinking about how much trouble it's going to be to put the keyboard back together after the video
@space8862
@space8862 2 жыл бұрын
Has someone already roasted this guy?
@procactus9109
@procactus9109 5 жыл бұрын
huh, The video was cut short. I assume there is a part 2.
@DerUnbekannte
@DerUnbekannte 5 жыл бұрын
In this line scanning model, what happens when I press a key in the current row, one below on the same column, and one more on the same row as the second key. Do I get a false detection on the scanned row?
@Those_Weirdos
@Those_Weirdos 2 жыл бұрын
I like how the subtitles just give up at around 2:20.
@okaro6595
@okaro6595 5 жыл бұрын
In the DOS era the interrupt just interpreted the scan code and put the scan code and the ASCII code in a buffer and then it was for the software to check if there were characters in the buffer. Is it somehow more sophisticated with Windows?
@gdclemo
@gdclemo 2 жыл бұрын
In Windows, the currently focused window gets sent a message when a key is pressed. There is WM_KEYUP and WM_KEYDOWN for the "key pressed" or "key released" messages (including repeats if you hold down a key) and WM_CHAR when the OS converts one or more keypresses into a character, depending on the current language (this can get very complicated for languages with lots of characters like Japanese). The application typically passes control to the OS and asks it to wake it up when there's a new message for it.
@SeanKD_Photos
@SeanKD_Photos 5 жыл бұрын
Dose this guy not know about the modern mechanical keyboard market? Like come on
@neatoelectro3687
@neatoelectro3687 5 жыл бұрын
of course he does. that's why he said he just started a flame war when He mentioned the Model M.
@MsHojat
@MsHojat 5 жыл бұрын
Model M isn't a modern mechanical keyboard though, so it's not really proof that he's aware of the modern mechanical keyboard movement/fad.
@pierreabbat6157
@pierreabbat6157 5 жыл бұрын
On the Apple ][, if you press 1, 2, and 3 at the same time, it would also get an S, or something like that.
@TheRealFaceyNeck
@TheRealFaceyNeck 5 жыл бұрын
The only thing missing from this video is Dr. Bagley literally dropping a microphone and walking off set.
@hamditrimech9299
@hamditrimech9299 5 жыл бұрын
hi, I would like to develop a language pack, then add an engine work in the background, which will works like a sentences corrector, all what I found is about how to install a language pack, any idea where to start ? .
@laurenhahn8569
@laurenhahn8569 5 жыл бұрын
A letter appears on the screen. Next question.
@gman6055
@gman6055 5 жыл бұрын
Lauren Hahn end of story, video length = 2 seconds. 12 minutes and 26 seconds saved :) genius
@Melvin420x12
@Melvin420x12 5 жыл бұрын
Now I understand why in javascript you can't just ask if "W" is pressed, but instead check if the keyboard tells if a key is pressed and if that key is coincidentally keyCode 87 and then ask if a key is released and if that was coincidentally also keyCode 87.
@lesthompson608
@lesthompson608 5 жыл бұрын
There are different codes called make and break codes for when a key is pressed vs released.
@patsonical
@patsonical 5 жыл бұрын
Part 2 when? I wanna know how a UNIX system handles these
@marcel151
@marcel151 3 жыл бұрын
Just how any other OS handles it? Throw a keymap on it and display the pressed key.
@b1aflatoxin
@b1aflatoxin 5 жыл бұрын
Hmmm, what about keyboard polyphony? From experience, even cheap keyboards have 5 key polyphony (five key-presses can be performed at the same time). ??? I'm thinking it has to do with the microcontroller being able to differentiate between micro-second delay times that out brains and hands can not. ??? _Edit:_ This question stems from my experience with DAW's and VST's in music production. After thinking about it more, ...it's probably a software thing. ;) But I'm still curious.
@xotmatrix
@xotmatrix 5 жыл бұрын
"I like my keyboards like I like my peas: soft and mushy."
@christianmonturanoii6539
@christianmonturanoii6539 10 ай бұрын
How do they mold the shape of the letter under rhe keyboard ? I don't know how to ask this question it's hard to find aomone that can explain. So when a computer is built how do they mold all the letters into the computer so that when I press the letter x it shows up on the screen there isn't a little mold of rhe letter x under the button lol how do rheu fiest get the symbols to show up on the screen from the keyboard?
@kranser
@kranser 5 жыл бұрын
You mentioned when a key is released, the hardware would send a signal to the computer to say a key release event has happened - but how does the HW know a key is released, would it not need some kind of memory to check which keyboard link lines were being pressed at the previous scan?
@0LoneTech
@0LoneTech 5 жыл бұрын
Quite right! That's part of what the program in that microcontroller handles. USB keyboards process things slightly differently, in that they report a list of currently pressed keys instead of press/release events.
@kranser
@kranser 5 жыл бұрын
Thanks LoneTech. So the microcontroller is part of the keyboard, am I correct? So the Computer OS does not need to monitor for key presses, just wait for a key pressed/released interrupt event, yes?
@hydrochloricacid2146
@hydrochloricacid2146 5 жыл бұрын
kranser correct. Seperate interrupts are sent for key press and release.
@RamkrishanYT
@RamkrishanYT 5 жыл бұрын
make a second video explaining the software sides of it
@jacopo4395
@jacopo4395 2 жыл бұрын
Yeah subtitles!!
@FabianMendez
@FabianMendez 5 жыл бұрын
"I love my keyboards soft and mushy" You should be ashamed of yourself!!!
@xymaryai8283
@xymaryai8283 3 жыл бұрын
what if I handbuilt a custom membrane keyboard? im already doing 90% of what the mechkeys community wants, is that enough to leave me alone? XD I do actually want to build a custom keyboard with some nice soft tactile switches, but they don't exist in the same form factor as cherrys or kaihls
@berrabe3917
@berrabe3917 5 жыл бұрын
can you guys add subtitle?
@miran248
@miran248 5 жыл бұрын
Anyone remember the times where you could push (at most) three keys simultaneously? :) My first computer would at that point freeze for the duration of beep (from the speaker at the bottom of the computer case) repeatedly until some keys were released.
@neatoelectro3687
@neatoelectro3687 5 жыл бұрын
I had forgotten all about this. . . then you mentioned the beep.
@NilayInel
@NilayInel Жыл бұрын
Neden türkçe altyazı sadece 2 dk var ancak oraya kadar izler diye mi düşündünüz yoksa 2. dk dan sonra İng. mi anlamaya başlamamız gerekiyordu:
@thogameskanaal
@thogameskanaal Жыл бұрын
Microsoft Word is essentially a printing press simulator with lots of bells and whistles...
@AlexOjideagu2
@AlexOjideagu2 5 жыл бұрын
3:26 A poppy memorial day keyboard
@tracyrreed
@tracyrreed 5 жыл бұрын
Cherry MX blue keyswitches for life! If your officemate doesn't think you are under machine gun attack its not a real keyboard!
@neatoelectro3687
@neatoelectro3687 5 жыл бұрын
Plus It sets you up for a quick move, either to an office so no one is bothered by your keeb, or out the door, so no one is bothered by your keeb. Otherwise, the company is liable for the PTSD your office mates suffer, from being under attack all day!
@xYuki91x
@xYuki91x 2 жыл бұрын
say I press 3 keys at the exact same time of which 2 are on the same line vertically and the other one is in the same line horizontally with one of those. How can my keyboard know if I pressed 3 keys and not only 2? Or perhaps I even pressed 4 keys at the same time? How can it tell the difference?
@jackodonnell3463
@jackodonnell3463 2 жыл бұрын
Based on that fly shirt, I suppose the stereotype of computer scientist's being fashionably obtuse is only an American thing
@okaro6595
@okaro6595 5 жыл бұрын
When euro was introduced they actually sold new keyboards for people by saying that it has the euro character.
@yecto1332
@yecto1332 2 жыл бұрын
Never would have known that cpu scans keyboard electronically like it scans monitor Cool Learns new things everytime
@unlokia
@unlokia 5 жыл бұрын
What's the ASCII code for the "Any" key?
@neatoelectro3687
@neatoelectro3687 5 жыл бұрын
I don't see any any key!
@ludovitche
@ludovitche 5 жыл бұрын
How many years of printing paper from the 90s do you have left ? Or is that continuous stationery even older ? 80s ? :) Some guy in the purchase department really overdid it...
@ChrisWMF
@ChrisWMF 2 жыл бұрын
What if the user is a gamer and they need the computer to know that several keys are being pressed at the same time. Isn't there some cases where some key strokes can confuse this system since they overlap in the key matrix?
@kanskejonasidag1
@kanskejonasidag1 5 жыл бұрын
"A dollar, a YOROOH"
@saryakan
@saryakan 5 жыл бұрын
"An A press is an A press"
@MrGustaphe
@MrGustaphe 5 жыл бұрын
Whoever invented the fn-key needs to get fired. Unlike the other control keys, "fn+A" doesn't actually register as a modification on 'A', meaning that you can't bind things to "fn+A" programmatically. Add to that the fact that there is no standard for fn-lock or no, and that the key itself is always on the opposite side of the keyboard from whatever you want to push it with... Top 3 horrible keyboard "features": 1. fn 2. right-click key 3. insert
@aldobernaltvbernal8745
@aldobernaltvbernal8745 4 жыл бұрын
i wanna make a mouse keyboard now
@thedawnofslayer
@thedawnofslayer 5 жыл бұрын
subtitles... where you are?
CPUs Are Out of Order - Computerphile
15:09
Computerphile
Рет қаралды 186 М.
How Software Deals with Key Presses - Computerphile
12:01
Computerphile
Рет қаралды 71 М.
[실시간] 전철에서 찍힌 기생생물 감염 장면 | 기생수: 더 그레이
00:15
Netflix Korea 넷플릭스 코리아
Рет қаралды 37 МЛН
Final muy inesperado 😨
01:00
Juan De Dios Pantoja
Рет қаралды 46 МЛН
ONE MORE SUBSCRIBER FOR 4 MILLION!
00:28
Horror Skunx
Рет қаралды 44 МЛН
ChatGPT Jailbreak - Computerphile
11:41
Computerphile
Рет қаралды 273 М.
How do Computer Keyboards Work? 🤔⌨⌨🛠
11:09
Branch Education
Рет қаралды 1 МЛН
Floating Point Numbers - Computerphile
9:16
Computerphile
Рет қаралды 2,3 МЛН
Where GREP Came From - Computerphile
10:07
Computerphile
Рет қаралды 928 М.
GUI: Under the Hood - Computerphile
17:26
Computerphile
Рет қаралды 152 М.
Physics of Computer Chips - Computerphile
12:00
Computerphile
Рет қаралды 610 М.
How does a Mouse know when you move it?  ||  How Does a Computer Mouse Work?
12:04
Pascal (Not Just Nickel & Dime) - Computerphile
11:59
Computerphile
Рет қаралды 57 М.
How TRANSISTORS do MATH
14:22
In One Lesson
Рет қаралды 2,1 МЛН
Multiple Processor Systems - Computerphile
14:52
Computerphile
Рет қаралды 152 М.
[실시간] 전철에서 찍힌 기생생물 감염 장면 | 기생수: 더 그레이
00:15
Netflix Korea 넷플릭스 코리아
Рет қаралды 37 МЛН