# Keyboard in a separate library

**URL:** <https://discourse.libsdl.org/t/keyboard-in-a-separate-library/15165>\
**Category:** SDL Development\
**Created:** [February 26, 2008, 6:21pm UTC](https://discourse.libsdl.org/t/keyboard-in-a-separate-library/15165 "2008-02-26T18:21:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gustavo\_Serra](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/g/e19b73/32.png) [@Gustavo\_Serra](https://discourse.libsdl.org/u/Gustavo_Serra)\
**Post date:** [February 26, 2008, 6:21pm UTC](https://discourse.libsdl.org/t/keyboard-in-a-separate-library/15165/1 "2008-02-26T18:21:05Z")

</div>

Hello,

```
I have the following problem: my main program uses SDL to render its  

```

graphical interface. Based on the available hardware, a library is loaded  
to interact with the keyboard (a serial keyboard uses a library, ps/2 uses  
another). I can’t figure it out how to acchieve this with SDL. The ps/2  
keyboard library should use SDL to capture the keys. Is it possible to use  
SDL in a dinamically loaded library? Is is important to note that this  
program must be able to run on X11 and on svgalib.

```
I am using Linux. Any more necessary details just ask.

```

Thanks any help.
