SDL 관련 터치스크린 문제

hoseungc의 이미지

sdl을 arm용으로 컴파일하고 보드에 올렸는데요

제가 하고 있는건 호스티pc에서 캠영상을 보드로 전송해서 sdl을 이용해서 띄우는 건데요

sdl을 보드에서 쓰려면

$export SDL_NOMOUSE=1;

이걸 안해주면 안되더라고요

근데 저는 터치스크린을 사용해야 하는데..

제 보드는 s3c2440 rebis 입니다

SDL_InitI(); 하기 전에

putenv("SDL_MOUSEDRV=s3c2440-ts");
putenv("SDL_MOUSEDEV=s3c2440-ts");

이걸 해줘도

s3c2440_ts_ioctl: UNKNOWN IOCTL COMMAND=0x00005401

이 메세지만 나오네요

아시는 분들 답변 바랍니다

sosuri78의 이미지

export SDL_NOMOUSE=1; 를 하기 싫으면

src\video\fbcon\SDL_fbvideo.c 에서

static int FB_VideoInit(_THIS, SDL_PixelFormat *vformat)

함수의 아래 부분을 comment out 하세요

if ( FB_OpenMouse(this) < 0 ) {
const char *sdl_nomouse;

sdl_nomouse = SDL_getenv("SDL_NOMOUSE");
if ( ! sdl_nomouse ) {
SDL_SetError("Unable to open mouse");
FB_VideoQuit(this);
return(-1);
}
}

hoseungc의 이미지

그부분을 comment out 하면 단지

export SDL_NOMOUSE=1;

이걸 안해도 된다는 말씀이신가요

아님 터치가 된다는 말씀이신가요..

아..먼저 답변 감사드립니다;;

sosuri78의 이미지

export SDL_NOMOUSE=1를 안해도 된다는 말이었구요. 터치스크린의 경우는 안써봐서
말씀은 못드리겠지만, 우선 정상적으로 touch screen drvier open을 했는지 확인을 해보시구요
sdl 소스를 보니까 SDL_MOUSEDEV 환경변수를 참조해서 touch screen driver 를 open 하는것으로 보입니다. 혹은 strace(system call trace)등을 사용하셔서 정상적인 touch screen device 를 여는지 확인해 보시기 바랍니다.

http://kelp.or.kr/korweblog/stories.php?story=06/01/09/6438966 여기에 나온데로 기존 SDL에 들어있는 elo 터치 스크린 리소스를 활용해서 해당 target의 touch screen driver 와 연결해주는 부분을 수정해야 할것 같습니다.

안해봐서 더 자세히는 모르겠습니다.

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.