11-21-2012, 04:03 PM | #241 | ||
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Quote:
http://osdir.com/ml/emulators.qemu/2.../msg00085.html http://osdir.com/ml/emulators.qemu/2.../msg00093.html etc.. other thoughts: http://stackoverflow.com/questions/3...ordinates-in-x get cursor position Code:
#include <X11/Xlib.h> #include <assert.h> #include <unistd.h> #include <stdio.h> #include <malloc.h> static int _XlibErrorHandler(Display *display, XErrorEvent *event) { fprintf(stderr, "An error occured detecting the mouse position\n"); return True; } int main(void) { int number_of_screens; int i; Bool result; Window *root_windows; Window window_returned; int root_x, root_y; int win_x, win_y; unsigned int mask_return; Display *display = XOpenDisplay(NULL); assert(display); XSetErrorHandler(_XlibErrorHandler); number_of_screens = XScreenCount(display); fprintf(stderr, "There are %d screens available in this X session\n", number_of_screens); root_windows = malloc(sizeof(Window) * number_of_screens); for (i = 0; i < number_of_screens; i++) { root_windows[i] = XRootWindow(display, i); } for (i = 0; i < number_of_screens; i++) { result = XQueryPointer(display, root_windows[i], &window_returned, &window_returned, &root_x, &root_y, &win_x, &win_y, &mask_return); if (result == True) { break; } } if (result != True) { fprintf(stderr, "No mouse found.\n"); return -1; } printf("Mouse is at (%d,%d)\n", root_x, root_y); free(root_windows); return 0; } So... XQueryPointer(display, root_windows[0], &window_returned, &window_returned, &root_x, &root_y, &win_x, &win_y, &mask_return); perhaps that could be "massaged" Setting x y Quote:
and http://tronche.com/gui/x/xlib/input/XWarpPointer.html xdotool may also be useful (This I have) HTH. no answers, but thoughts in a direction Last edited by twobob; 11-21-2012 at 04:20 PM. |
||
11-21-2012, 05:06 PM | #242 |
curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
Posts: 3,002
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
|
Thanks for the research/references twobob! I will read with great attention. I also reached the conclusion that I would need Xorg extensions to LibVNC... and not discounting the speed problem to keep queries timely synchronized with the mouse position... I am a bit overwhelmed but not quitting yet
|
Advert | |
|
11-21-2012, 08:34 PM | #243 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Quote:
will have a play : ) see if I can get some of those tools for the 3 Never give up! teehehe Last edited by twobob; 11-21-2012 at 08:52 PM. Reason: more rant |
|
11-22-2012, 04:30 AM | #244 |
Wizard
Posts: 1,379
Karma: 2155307
Join Date: Nov 2010
Location: Goettingen, Germany
Device: Kindle Paperwhite, Kobo Mini
|
PoP: don't get distracted with the X stuff - VNC can probably do what you want. I think we need to serve LibVNCClient's HandleCursorPosProc callback properly. I probably won't get to work on this for the next few days, so feel free to give it a try!
|
11-22-2012, 12:48 PM | #245 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Quote:
for ref: http://libvncserver.sourceforge.net/...f5bfa7007dc0f6 00162 typedef rfbBool (*HandleCursorPosProc)(struct _rfbClient* client, int x, int y); from http://libvncserver.sourceforge.net/...8h_source.html |
|
Advert | |
|
11-22-2012, 04:53 PM | #246 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Hi I was reading http://bisqwit.iki.fi/story/howto/dither/jy/ and then http://www.efg2.com/Lab/Library/Imag...sing/DHALF.TXT and
was wondering if this (almost complete) snippet would be of use to try a cheap 8bpp -dithered target? 1) This code (in the C programming language) dithers a 256-level monochrome image onto a black-and-white display with the Bayer ordered dither. Spoiler:
and Spoiler:
I guess? Would dearly love to see a (cheap) dithered target for the touch as the one on the 3 does such a great job. Did think about getting it done myself but once again the maths has stumbled me. Anyways, I know you are busy but I documented the thought. Also: Is the GIT the latest code? I don't understand how I can get an error message that I cant find in the code??? The one about "4bpp only being supported for now sorry" Am I being stupid? also this was worth a read http://www.virtualdub.org/blog/pivot/entry.php?id=151 Last edited by twobob; 11-23-2012 at 02:54 PM. |
11-22-2012, 10:04 PM | #247 | |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
|
|
11-22-2012, 10:55 PM | #248 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Quote:
or b) into Xephyr or SDL. will revist a) again then with your code in mind. |
|
11-23-2012, 11:47 AM | #249 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Hmm. Thought I would share how I use my viewer.
[root@kindle root]# piano 2> /dev/null very helpful thanks [root@kindle root]# nano /mnt/us/usr/bin/piano (pictured simple script) x11vnc runs on my host. Last edited by twobob; 11-23-2012 at 12:28 PM. |
11-23-2012, 12:02 PM | #250 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Ah, Norma Jean
I read your PM before I saw the post above, but now I am up to speed. |
11-23-2012, 04:08 PM | #251 | |
curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
Posts: 3,002
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
|
Quote:
I would start by adding a new function to config.lua Code:
GetPointerPos(x, y) get mouse coordinates from client But I just don't know how to code these pieces together. Would be fun to have but not a priority (don't sweat it). Thanks. |
|
11-23-2012, 06:07 PM | #252 |
Connoisseur
Posts: 60
Karma: 6492
Join Date: Oct 2011
Device: kindle 2
|
Video tutorial for Windows 7 is ready:
http://youtu.be/7ecuTxcHwgE |
11-23-2012, 07:35 PM | #253 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Helpful. I didn't catch 100% of everything. And I now rarely use windows, but I suspect I will probably use this guide with the DX at some point. so thanks for that.
Appreciate the discussion link and will even hazard a look in your bundle. appreciated. |
11-29-2012, 09:44 AM | #254 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
From the docs: https://github.com/hwhw/kindlevncviewer
Quote:
Anyways. Thought I would share. Last edited by twobob; 11-29-2012 at 10:19 AM. Reason: i686-pc-linux-gnu ? |
|
11-29-2012, 12:42 PM | #255 |
Wizard
Posts: 1,379
Karma: 2155307
Join Date: Nov 2010
Location: Goettingen, Germany
Device: Kindle Paperwhite, Kobo Mini
|
Oh, right! Got to remember to check this, I won't probably have the time for the next 3 days. Thank you for the notice!
|
Tags |
application, kindle, source, viewer, vnc |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Free (GPLv2) Translation Dictionaries | Elleo | Amazon Kindle | 3 | 01-11-2011 10:57 PM |
Calibre native app on iphone for reading news? | bigreat | Calibre | 2 | 07-21-2010 11:50 PM |
Android Android App: VNC | leo315 | enTourage Archive | 4 | 05-13-2010 06:06 PM |
Android VNC viewer (use your PC from the eDGe!) | devseev | enTourage Archive | 2 | 04-11-2010 01:21 AM |
PalmPDF - native PDF Viewer for Palm OS 5.x | Colin Dunstan | Reading and Management | 2 | 11-23-2005 02:09 PM |